mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-20 15:14:29 +00:00
setProfession with professionID
With this method, you can disguise as a "generic" villager, which is not in the Profession enum
This commit is contained in:
parent
d33af82177
commit
ddb76d7488
1 changed files with 5 additions and 2 deletions
|
@ -18,8 +18,11 @@ public class VillagerWatcher extends AgeableWatcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProfession(Profession newProfession) {
|
public void setProfession(Profession newProfession) {
|
||||||
setValue(16, newProfession.getId() % 6);
|
setProfession(newProfession.getId() % 6);
|
||||||
sendData(16);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setProfession(int professionId){
|
||||||
|
setValue(16, professionId);
|
||||||
|
sendData(16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue