1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fix compile error

This commit is contained in:
svr333 2020-10-05 15:30:23 +02:00
parent e65341eb0b
commit ab5251021a

View File

@ -58,7 +58,7 @@ public class MagicalZombiePills extends SimpleSlimefunItem<EntityInteractHandler
p.playSound(p.getLocation(), Sound.ENTITY_ZOMBIE_VILLAGER_CONVERTED, 1, 1);
if (entity.getType() == EntityType.ZOMBIE_VILLAGER) {
healZombieVillager((ZombieVillager) entity);
healZombieVillager((ZombieVillager) entity, p);
}
else if (entity.getType() == EntityType.ZOMBIFIED_PIGLIN) {
@ -77,7 +77,7 @@ public class MagicalZombiePills extends SimpleSlimefunItem<EntityInteractHandler
return PlayerRightClickEvent::cancel;
}
private void healZombieVillager(ZombieVillager zombieVillager) {
private void healZombieVillager(ZombieVillager zombieVillager, Player p) {
zombieVillager.setConversionTime(1);
if (SlimefunPlugin.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_15)) {