From 0f8209c06b98e96bf6da4cbafd8c9b25e877b9ad Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 9 Sep 2018 20:20:36 +0200 Subject: [PATCH] It fixed itself? --- .../model/ponies/ModelWitchPony.java | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/minelittlepony/model/ponies/ModelWitchPony.java b/src/main/java/com/minelittlepony/model/ponies/ModelWitchPony.java index 3e28b31b..43cb080a 100644 --- a/src/main/java/com/minelittlepony/model/ponies/ModelWitchPony.java +++ b/src/main/java/com/minelittlepony/model/ponies/ModelWitchPony.java @@ -5,15 +5,12 @@ import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntityWitch; import net.minecraft.util.math.MathHelper; -import com.minelittlepony.model.gear.IGear; -import com.minelittlepony.model.gear.WitchHat; import com.minelittlepony.model.player.ModelZebra; import com.minelittlepony.pony.data.IPony; +import com.minelittlepony.pony.data.PonyWearable; public class ModelWitchPony extends ModelZebra { - private IGear witchHat; - public ModelWitchPony() { super(false); } @@ -80,15 +77,10 @@ public class ModelWitchPony extends ModelZebra { } @Override - protected void renderHead(Entity entity, float move, float swing, float ticks, float headYaw, float headPitch, float scale) { - super.renderHead(entity, move, swing, ticks, headYaw, headPitch, scale); - // FIXME: Wearables don't show on witches unless it's holding an item/drinking something - witchHat.renderSeparately(entity, scale); - } - - @Override - public void init(float yOffset, float stretch) { - super.init(yOffset, stretch); - witchHat = new WitchHat(); + public boolean isWearing(PonyWearable wearable) { + if (wearable == PonyWearable.HAT) { + return true; + } + return super.isWearing(wearable); } }