Fix it doing the wrong stuff for baby baby ohhh
This commit is contained in:
parent
f5c48eb264
commit
78bc04a4b4
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user