Add 1.15.2 Compaitbility issue with pig_zombie egg.

This commit is contained in:
BONNe 2020-07-09 23:03:52 +03:00
parent d69049b919
commit 6a79351685

View File

@ -114,9 +114,6 @@ public class GuiUtils
switch (entity)
{
case PIG_ZOMBIE:
itemStack = new ItemStack(Material.ZOMBIE_PIGMAN_SPAWN_EGG);
break;
case ENDER_DRAGON:
itemStack = new ItemStack(Material.DRAGON_EGG);
break;
@ -153,6 +150,12 @@ public class GuiUtils
break;
}
if (entity.name().equals("PIG_ZOMBIE"))
{
// If pig zombie exist, then pigman spawn egg exists too.
itemStack = new ItemStack(Material.getMaterial("ZOMBIE_PIGMAN_SPAWN_EGG"));
}
itemStack.setAmount(amount);
return itemStack;