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