From 98677bade3bca08c3dae2ca86e96a3924363ba3e Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 18 Nov 2013 04:43:12 +1300 Subject: [PATCH] Use the method instead of setvalue for villager --- .../disguise/disguisetypes/watchers/VillagerWatcher.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java index 0eac352f..353b9b2e 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/VillagerWatcher.java @@ -2,17 +2,15 @@ package me.libraryaddict.disguise.disguisetypes.watchers; import java.util.Random; - import me.libraryaddict.disguise.disguisetypes.Disguise; import org.bukkit.entity.Villager.Profession; - public class VillagerWatcher extends AgeableWatcher { public VillagerWatcher(Disguise disguise) { super(disguise); - setValue(16, Profession.values()[new Random().nextInt(Profession.values().length)].getId()); + setProfessionId(new Random().nextInt(Profession.values().length)); } public Profession getProfession() {