mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-01 06:53:37 +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)
|
switch (entity)
|
||||||
{
|
{
|
||||||
case PIG_ZOMBIE:
|
|
||||||
itemStack = new ItemStack(Material.ZOMBIE_PIGMAN_SPAWN_EGG);
|
|
||||||
break;
|
|
||||||
case ENDER_DRAGON:
|
case ENDER_DRAGON:
|
||||||
itemStack = new ItemStack(Material.DRAGON_EGG);
|
itemStack = new ItemStack(Material.DRAGON_EGG);
|
||||||
break;
|
break;
|
||||||
@ -153,6 +150,12 @@ public class GuiUtils
|
|||||||
break;
|
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);
|
itemStack.setAmount(amount);
|
||||||
|
|
||||||
return itemStack;
|
return itemStack;
|
||||||
|
Loading…
Reference in New Issue
Block a user