Skip to content

Commit

Permalink
Prevent killer rabbits from attacking
Browse files Browse the repository at this point in the history
Thanks to morphan1 for helping to fix this bug
  • Loading branch information
mcmonkey4eva committed Feb 13, 2015
1 parent ec73f80 commit 524c819
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -74,6 +74,15 @@ protected String bo() {
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)
Expand Down

0 comments on commit 524c819

Please sign in to comment.