Minor fixes
This commit is contained in:
parent
56f3c23949
commit
90a92e8ce1
@ -10,7 +10,7 @@ public class BoatWatcher extends FlagWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getDamage() {
|
public int getDamage() {
|
||||||
return (Integer) getValue(19, 40F);
|
return Math.round(getValue(19, 40F));
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getHealth() {
|
public int getHealth() {
|
||||||
|
@ -77,7 +77,7 @@ public class HorseWatcher extends AgeableWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isTrue(int i) {
|
private boolean isTrue(int i) {
|
||||||
return ((Integer) getValue(16, (byte) 0) & i) != 0;
|
return (getValue(16, (byte) 0) & i) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCanBreed(boolean breed) {
|
public void setCanBreed(boolean breed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user