From ddb76d748855e5558eae80014efc43dbaf8d5be1 Mon Sep 17 00:00:00 2001 From: mcat95 Date: Wed, 23 Jul 2014 20:43:43 +0200 Subject: [PATCH] setProfession with professionID With this method, you can disguise as a "generic" villager, which is not in the Profession enum --- .../disguise/disguisetypes/watchers/VillagerWatcher.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java index 0aee0454..32ea59a7 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java @@ -18,8 +18,11 @@ public class VillagerWatcher extends AgeableWatcher { } public void setProfession(Profession newProfession) { - setValue(16, newProfession.getId() % 6); + setProfession(newProfession.getId() % 6); + } + + public void setProfession(int professionId){ + setValue(16, professionId); sendData(16); } - }