Change wolf setAngry to use setAnger

This commit is contained in:
libraryaddict 2021-03-05 18:50:35 +13:00
parent 914a17ba20
commit 5d98ffc205

View File

@ -45,11 +45,13 @@ public class WolfWatcher extends TameableWatcher {
} }
public boolean isAngry() { public boolean isAngry() {
return isTameableFlag(2); return getAnger() > 0;
//return isTameableFlag(2);
} }
public void setAngry(boolean angry) { public void setAngry(boolean angry) {
setTameableFlag(2, angry); setAnger(angry ? 1 : 0);
//setTameableFlag(2, angry);
} }
public int getAnger() { public int getAnger() {