mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 06:18:00 +01:00
It fixed itself?
This commit is contained in:
parent
ea5ec9fdbe
commit
0f8209c06b
1 changed files with 6 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue