mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Add 1.15.2 Compaitbility issue with pig_zombie egg.
This commit is contained in:
parent
d69049b919
commit
6a79351685
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user