It fixed itself?

This commit is contained in:
Sollace 2018-09-09 20:20:36 +02:00
parent ea5ec9fdbe
commit 0f8209c06b

View file

@ -5,15 +5,12 @@ import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityWitch; import net.minecraft.entity.monster.EntityWitch;
import net.minecraft.util.math.MathHelper; 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.model.player.ModelZebra;
import com.minelittlepony.pony.data.IPony; import com.minelittlepony.pony.data.IPony;
import com.minelittlepony.pony.data.PonyWearable;
public class ModelWitchPony extends ModelZebra { public class ModelWitchPony extends ModelZebra {
private IGear witchHat;
public ModelWitchPony() { public ModelWitchPony() {
super(false); super(false);
} }
@ -80,15 +77,10 @@ public class ModelWitchPony extends ModelZebra {
} }
@Override @Override
protected void renderHead(Entity entity, float move, float swing, float ticks, float headYaw, float headPitch, float scale) { public boolean isWearing(PonyWearable wearable) {
super.renderHead(entity, move, swing, ticks, headYaw, headPitch, scale); if (wearable == PonyWearable.HAT) {
// FIXME: Wearables don't show on witches unless it's holding an item/drinking something return true;
witchHat.renderSeparately(entity, scale); }
} return super.isWearing(wearable);
@Override
public void init(float yOffset, float stretch) {
super.init(yOffset, stretch);
witchHat = new WitchHat();
} }
} }