Fix rabbits not moving

As a side effect, killer rabbits will attack, as E() encompasses both
movement and attacking. Not sure how to fix this... but moving+sometimes
attacking is better than never moving.
This commit is contained in:
mcmonkey4eva 2015-02-10 12:02:36 -08:00
parent c1321c2162
commit 735e5f9ec8

View File

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