Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Fix zombie professions
Dieser Commit ist enthalten in:
Ursprung
f8500c0a3e
Commit
30da15647f
@ -29,11 +29,11 @@ public class CraftVillagerZombie extends CraftZombie implements ZombieVillager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Villager.Profession getVillagerProfession() {
|
public Villager.Profession getVillagerProfession() {
|
||||||
return Villager.Profession.values()[getHandle().getProfession()];
|
return Villager.Profession.values()[getHandle().getProfession() + Villager.Profession.FARMER.ordinal()];
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVillagerProfession(Villager.Profession profession) {
|
public void setVillagerProfession(Villager.Profession profession) {
|
||||||
getHandle().setProfession(profession == null ? 0 : profession.ordinal());
|
getHandle().setProfession(profession == null ? 0 : profession.ordinal() - Villager.Profession.FARMER.ordinal());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren