mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
parent
c6275cf98b
commit
2c36c99bba
1 changed files with 4 additions and 8 deletions
|
@ -2,7 +2,6 @@ package com.minelittlepony.model;
|
|||
|
||||
import com.minelittlepony.model.armour.ModelPonyArmor;
|
||||
import com.minelittlepony.model.armour.PonyArmor;
|
||||
import com.minelittlepony.model.capabilities.ICapitated;
|
||||
import com.minelittlepony.model.capabilities.IModel;
|
||||
import com.minelittlepony.model.capabilities.IModelPart;
|
||||
import com.minelittlepony.model.components.PonySnout;
|
||||
|
@ -16,7 +15,6 @@ import com.minelittlepony.render.model.PonyRenderer;
|
|||
import com.minelittlepony.util.math.MathUtil;
|
||||
import com.minelittlepony.util.render.AbstractBoxRenderer;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelPlayer;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
|
@ -816,12 +814,10 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel, P
|
|||
@Override
|
||||
public void render(Entity entity, float move, float swing, float ticks, float headYaw, float headPitch, float scale) {
|
||||
|
||||
if (!(entity instanceof EntityLivingBase && ((EntityLivingBase)entity).isPlayerSleeping() && entity == Minecraft.getMinecraft().player)) {
|
||||
pushMatrix();
|
||||
transform(BodyPart.HEAD);
|
||||
renderHead(entity, move, swing, ticks, headYaw, headPitch, scale);
|
||||
popMatrix();
|
||||
}
|
||||
pushMatrix();
|
||||
transform(BodyPart.HEAD);
|
||||
renderHead(entity, move, swing, ticks, headYaw, headPitch, scale);
|
||||
popMatrix();
|
||||
|
||||
pushMatrix();
|
||||
transform(BodyPart.NECK);
|
||||
|
|
Loading…
Reference in a new issue