diff --git a/src/main/java/com/minelittlepony/model/ponies/ModelVillagerPony.java b/src/main/java/com/minelittlepony/model/ponies/ModelVillagerPony.java index d213c682..46a5f2e0 100644 --- a/src/main/java/com/minelittlepony/model/ponies/ModelVillagerPony.java +++ b/src/main/java/com/minelittlepony/model/ponies/ModelVillagerPony.java @@ -1,6 +1,7 @@ package com.minelittlepony.model.ponies; import net.minecraft.entity.Entity; +import net.minecraft.entity.monster.EntityZombieVillager; import net.minecraft.entity.passive.EntityVillager; import net.minecraft.util.math.MathHelper; import static com.minelittlepony.model.PonyModelConstants.*; @@ -33,9 +34,9 @@ public class ModelVillagerPony extends ModelAlicorn { protected void renderBody(Entity entity, float move, float swing, float age, float headYaw, float headPitch, float scale) { super.renderBody(entity, move, swing, age, headYaw, headPitch, scale); - if (entity instanceof EntityVillager) { + int profession = getProfession(entity); + if (profession > -1) { bipedBody.postRender(this.scale); - int profession = ((EntityVillager) entity).getProfession(); if (profession < 2) { bag.render(scale); } else if (profession == 2) { @@ -46,6 +47,16 @@ public class ModelVillagerPony extends ModelAlicorn { } } + protected int getProfession(Entity entity) { + if (entity instanceof EntityVillager) { + return ((EntityVillager) entity).getProfession(); + } + if (entity instanceof EntityZombieVillager) { + return ((EntityZombieVillager) entity).getProfession(); + } + return -1; + } + @Override protected void initTextures() { super.initTextures(); diff --git a/src/main/resources/assets/minelittlepony/textures/entity/zombie_villager/zombie_farmer_pony.png b/src/main/resources/assets/minelittlepony/textures/entity/zombie_villager/zombie_farmer_pony.png index 5bddac77..4bffbf00 100644 Binary files a/src/main/resources/assets/minelittlepony/textures/entity/zombie_villager/zombie_farmer_pony.png and b/src/main/resources/assets/minelittlepony/textures/entity/zombie_villager/zombie_farmer_pony.png differ