mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Bind skin when drawing arm in first person
This commit is contained in:
parent
423064c504
commit
6b8976c414
1 changed files with 6 additions and 0 deletions
|
@ -1,8 +1,11 @@
|
|||
package com.brohoof.minelittlepony.model;
|
||||
|
||||
import com.brohoof.minelittlepony.MineLittlePony;
|
||||
import com.brohoof.minelittlepony.Pony;
|
||||
import com.brohoof.minelittlepony.PonyData;
|
||||
import com.brohoof.minelittlepony.renderer.AniParams;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.client.model.ModelPlayer;
|
||||
import net.minecraft.client.renderer.entity.RenderPlayer;
|
||||
|
@ -88,6 +91,9 @@ public abstract class ModelPony extends ModelPlayer {
|
|||
PMAPI.human.getModel().isSneak = isSneak;
|
||||
PMAPI.human.getModel().swingProgress = swingProgress;
|
||||
PMAPI.human.getModel().setModelRotationAngles(f1, f2, f3, f4, f5, f6, ent);
|
||||
// override default skin
|
||||
Pony pony = MineLittlePony.getInstance().getManager().getPonyFromResourceRegistry((AbstractClientPlayer) ent);
|
||||
Minecraft.getMinecraft().getTextureManager().bindTexture(pony.getTextureResourceLocation());
|
||||
}
|
||||
setModelRotationAngles(f1, f2, f3, f4, f5, f6, ent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue