mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-09 22:38:04 +02:00
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:
parent
c1321c2162
commit
735e5f9ec8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user