Wolf is now tamed if you set the collar color

This commit is contained in:
libraryaddict 2014-05-02 16:08:27 +12:00
parent f63e6376ff
commit ebefbfe2c7

View File

@ -43,6 +43,9 @@ public class WolfWatcher extends AgeableWatcher {
} }
public void setCollarColor(AnimalColor newColor) { public void setCollarColor(AnimalColor newColor) {
if (!isTamed()) {
setTamed(true);
}
if (newColor != getCollarColor()) { if (newColor != getCollarColor()) {
setValue(20, (byte) newColor.getId()); setValue(20, (byte) newColor.getId());
sendData(20); sendData(20);