mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fix zombie professions
By: md_5 <git@md-5.net>
This commit is contained in:
parent
dd5c01cf48
commit
b147b1834f
@ -29,11 +29,11 @@ public class CraftVillagerZombie extends CraftZombie implements ZombieVillager {
|
||||
|
||||
@Override
|
||||
public Villager.Profession getVillagerProfession() {
|
||||
return Villager.Profession.values()[getHandle().getProfession()];
|
||||
return Villager.Profession.values()[getHandle().getProfession() + Villager.Profession.FARMER.ordinal()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setVillagerProfession(Villager.Profession profession) {
|
||||
getHandle().setProfession(profession == null ? 0 : profession.ordinal());
|
||||
getHandle().setProfession(profession == null ? 0 : profession.ordinal() - Villager.Profession.FARMER.ordinal());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user