Update VillagerWatcher.java

Moved % 6 to new method :P
This commit is contained in:
mcat95 2014-07-23 21:52:51 +02:00
parent ddb76d7488
commit 1198f52bbd

View File

@ -18,11 +18,11 @@ public class VillagerWatcher extends AgeableWatcher {
}
public void setProfession(Profession newProfession) {
setProfession(newProfession.getId() % 6);
setProfession(newProfession.getId());
}
public void setProfession(int professionId){
setValue(16, professionId);
setValue(16, professionId % 6);
sendData(16);
}
}