From ddb76d748855e5558eae80014efc43dbaf8d5be1 Mon Sep 17 00:00:00 2001 From: mcat95 Date: Wed, 23 Jul 2014 20:43:43 +0200 Subject: [PATCH 1/2] 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); } - } From 1198f52bbd2886631610f273f3acd522cff9220f Mon Sep 17 00:00:00 2001 From: mcat95 Date: Wed, 23 Jul 2014 21:52:51 +0200 Subject: [PATCH 2/2] Update VillagerWatcher.java Moved % 6 to new method :P --- .../disguise/disguisetypes/watchers/VillagerWatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java index 32ea59a7..a87235f2 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java @@ -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); } }