mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-13 11:41:26 +01:00
Merge pull request #237 from mcmonkey4eva/master
Fix rabbits not moving
This commit is contained in:
commit
cc841ce0c7
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user