mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Refactor slightly
This commit is contained in:
parent
ab92df7693
commit
21bf7cf607
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user