Merge pull request #237 from mcmonkey4eva/master

Fix rabbits not moving
This commit is contained in:
fullwall 2015-02-15 11:42:44 +08:00
commit cc841ce0c7

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)
@ -126,7 +135,7 @@ public class RabbitController extends MobEntityController {
@Override
public void E() {
if (npc == null) {
if (npc == null || !npc.isFlyable()) {
super.E();
}
}
@ -203,4 +212,4 @@ public class RabbitController extends MobEntityController {
return npc;
}
}
}
}