mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-2336: Zombie.setVillager(Z)V
By: md_5 <git@md-5.net>
This commit is contained in:
parent
18f37c3b32
commit
c1bd122e35
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,11 @@ public class CraftZombie extends CraftMonster implements Zombie {
|
|||
}
|
||||
|
||||
public void setVillager(boolean flag) {
|
||||
getHandle().setVillagerType(0);
|
||||
if (flag) {
|
||||
getHandle().setVillagerType(0);
|
||||
} else {
|
||||
getHandle().clearVillagerType();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue