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:
parent
9fb79c8622
commit
17a68ddcf5
@ -35,7 +35,7 @@ public class ItemPickupListener implements Listener {
|
|||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
e.getItem().remove();
|
e.getItem().remove();
|
||||||
} else if (SlimefunPlugin.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_16)) {
|
} 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) {
|
if (SlimefunItem.getByItem(e.getItem().getItemStack()) != null) {
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user