Prevent killer rabbits from attacking

Thanks to morphan1 for helping to fix this bug
This commit is contained in:
mcmonkey4eva 2015-02-13 14:15:41 -08:00
parent 735e5f9ec8
commit c04399eadf

View File

@ -74,6 +74,15 @@ public class RabbitController extends MobEntityController {
return npc == null ? super.bo() : npc.data().get(NPC.DEATH_SOUND_METADATA, super.bo());
}
@Override
public void r(int i) {
if (npc != null) {
this.datawatcher.watch(18, (byte) i);
return;
}
super.r(i);
}
@Override
public boolean cb() {
if (npc == null)