Seaponies shouldn't have a sneaking animation

This commit is contained in:
Sollace 2018-08-22 21:55:16 +02:00
parent 153d32af3f
commit 4aecea94cb

View file

@ -2,11 +2,13 @@ package com.minelittlepony.model.ponies;
import com.minelittlepony.model.components.SeaponyTail; import com.minelittlepony.model.components.SeaponyTail;
import com.minelittlepony.model.player.ModelUnicorn; import com.minelittlepony.model.player.ModelUnicorn;
import com.minelittlepony.pony.data.Pony;
import com.minelittlepony.render.PonyRenderer; import com.minelittlepony.render.PonyRenderer;
import com.minelittlepony.render.plane.PlaneRenderer; import com.minelittlepony.render.plane.PlaneRenderer;
import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
public class ModelSeapony extends ModelUnicorn { public class ModelSeapony extends ModelUnicorn {
@ -22,6 +24,14 @@ public class ModelSeapony extends ModelUnicorn {
textureHeight = 64; textureHeight = 64;
} }
@Override
public void updateLivingState(EntityLivingBase entity, Pony pony) {
super.updateLivingState(entity, pony);
// Seaponies can't sneak, silly
isSneak = false;
}
@Override @Override
protected void initLegs(float yOffset, float stretch) { protected void initLegs(float yOffset, float stretch) {
super.initLegs(yOffset, stretch); super.initLegs(yOffset, stretch);