Fix pig zombies not being earth ponies.

This commit is contained in:
Matthew Messinger 2016-04-08 21:40:08 -04:00
parent 08728bc5c7
commit 53eaa3c40e

View file

@ -28,7 +28,7 @@ public class RenderPonyZombie<Zombie extends EntityZombie> extends RenderPonyMob
this.playerModel.getModel().metadata.setGender(rand.nextBoolean() ? PonyGender.MARE : PonyGender.STALLION); this.playerModel.getModel().metadata.setGender(rand.nextBoolean() ? PonyGender.MARE : PonyGender.STALLION);
// races // races
switch (rand.nextInt(4)) { switch (entity instanceof EntityPigZombie ? 0 : rand.nextInt(4)) {
case 0: case 0:
case 1: case 1:
this.playerModel.getModel().metadata.setRace(PonyRace.EARTH); this.playerModel.getModel().metadata.setRace(PonyRace.EARTH);