Remove unnecessary else if.

This commit is contained in:
BONNe 2019-01-20 19:29:55 +02:00
parent 7e3876f391
commit e9b20feac4

View File

@ -255,11 +255,6 @@ public class GuiUtils
// Materials Potted elements cannot be in inventory.
itemStack = new ItemStack(Material.getMaterial(material.name().replace("POTTED_", "")));
}
else if (material.name().startsWith("POTTED_"))
{
// Materials Potted elements cannot be in inventory.
itemStack = new ItemStack(Material.getMaterial(material.name().replace("POTTED_", "")));
}
else if (material.equals(Material.MELON_STEM) || material.equals(Material.ATTACHED_MELON_STEM))
{
itemStack = new ItemStack(Material.MELON_SEEDS);