Use the method instead of setvalue for villager

This commit is contained in:
Andrew 2013-11-18 04:43:12 +13:00
parent d4774aa3c5
commit 98677bade3

View File

@ -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() {