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

Removed unnecessary Zombified Piglin check

This commit is contained in:
poma123 2020-07-25 12:19:02 +02:00
parent 9fb79c8622
commit 17a68ddcf5

View File

@ -35,7 +35,7 @@ public class ItemPickupListener implements Listener {
e.setCancelled(true);
e.getItem().remove();
} else if (SlimefunPlugin.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_16)) {
if (e.getEntityType().equals(EntityType.PIGLIN) || e.getEntityType().equals(EntityType.ZOMBIFIED_PIGLIN)) {
if (e.getEntityType().equals(EntityType.PIGLIN)) {
if (SlimefunItem.getByItem(e.getItem().getItemStack()) != null) {
e.setCancelled(true);
}