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

Refactor slightly

This commit is contained in:
svr333 2020-10-05 15:00:21 +02:00
parent ab92df7693
commit 21bf7cf607

View File

@ -72,9 +72,8 @@ public class MagicalZombiePills extends SimpleSlimefunItem<EntityInteractHandler
ItemUtils.consumeItem(item, false);
}
p.playSound(p.getLocation(), Sound.ENTITY_ZOMBIE_VILLAGER_CONVERTED, 1, 1);
Location loc = entity.getLocation();
p.playSound(loc, Sound.ENTITY_ZOMBIE_VILLAGER_CONVERTED, 1, 1);
entity.remove();
loc.getWorld().spawnEntity(loc, EntityType.PIGLIN);