From 57735defa443428c18600377b58bb1998bf0c9e0 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 20 Oct 2019 11:54:17 -0400 Subject: [PATCH] Fixed an issue with zombie pigmen and spawners. --- .../songoda/ultimatestacker/listeners/SpawnerListeners.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatestacker/listeners/SpawnerListeners.java b/src/main/java/com/songoda/ultimatestacker/listeners/SpawnerListeners.java index ac3f246..cd694d3 100644 --- a/src/main/java/com/songoda/ultimatestacker/listeners/SpawnerListeners.java +++ b/src/main/java/com/songoda/ultimatestacker/listeners/SpawnerListeners.java @@ -82,7 +82,9 @@ public class SpawnerListeners implements Listener { EntityType entityType; if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_13)) - entityType = EntityType.valueOf(itemType.name().replace("_SPAWN_EGG", "").replace("MOOSHROOM", "MUSHROOM_COW")); + entityType = EntityType.valueOf(itemType.name().replace("_SPAWN_EGG", "") + .replace("MOOSHROOM", "MUSHROOM_COW") + .replace("ZOMBIE_PIGMAN", "PIG_ZOMBIE")); else if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_12)) { String str = Reflection.getNBTTagCompound(Reflection.getNMSItemStack(event.getItem())).toString(); if (str.contains("minecraft:"))