Fix it doing the wrong stuff for baby baby ohhh

This commit is contained in:
Andrew 2013-11-12 17:46:02 +13:00
parent f5c48eb264
commit 78bc04a4b4

View File

@ -13,16 +13,16 @@ public class AgeableWatcher extends LivingWatcher {
}
public boolean isBaby() {
return (Integer) getValue(12, 0) >= 0;
}
public void setBaby(boolean isBaby) {
setValue(12, isBaby ? 0 : -24000);
sendData(12);
return (Integer) getValue(12, 0) < 0;
}
public void setAdult(boolean isAdult) {
setBaby(!isAdult);
}
public void setBaby(boolean isBaby) {
setValue(12, isBaby ? -24000 : 0);
sendData(12);
}
}