setProfession with professionID

With this method, you can disguise as a "generic" villager, which is not in the Profession enum
This commit is contained in:
mcat95 2014-07-23 20:43:43 +02:00
parent d33af82177
commit ddb76d7488

View File

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