mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Use the method instead of setvalue for villager
This commit is contained in:
parent
d4774aa3c5
commit
98677bade3
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user