mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-17 01:54:21 +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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user