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

Requested changes

This commit is contained in:
poma123 2020-07-25 12:31:52 +02:00
parent 17a68ddcf5
commit a6d69ee9d6

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)) {
if (e.getEntityType() == EntityType.PIGLIN) {
if (SlimefunItem.getByItem(e.getItem().getItemStack()) != null) {
e.setCancelled(true);
}