mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-28 02:01:35 +01:00
Prevent killer rabbits from attacking
Thanks to morphan1 for helping to fix this bug
This commit is contained in:
parent
735e5f9ec8
commit
c04399eadf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user