Update relevent methods

This commit is contained in:
libraryaddict 2014-07-14 12:42:45 +12:00
parent b859ea28f9
commit 288882a427
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ public class BoatWatcher extends FlagWatcher {
} }
public int getDamage() { public int getDamage() {
return Math.round(getValue(19, 40F)); return (Integer) getValue(19, 40F);
} }
public int getHealth() { public int getHealth() {

View File

@ -77,7 +77,7 @@ public class HorseWatcher extends AgeableWatcher {
} }
private boolean isTrue(int i) { private boolean isTrue(int i) {
return (getValue(16, (byte) 0) & i) != 0; return ((Integer) getValue(16, (byte) 0) & i) != 0;
} }
public void setCanBreed(boolean breed) { public void setCanBreed(boolean breed) {

View File

@ -34,7 +34,7 @@ public class ZombieWatcher extends LivingWatcher {
} }
public boolean isShaking() { public boolean isShaking() {
return getValue(14, (byte) 0) == 1; return (Byte) getValue(14, (byte) 0) == 1;
} }
public void setBaby(boolean baby) { public void setBaby(boolean baby) {