Skip to content

Commit

Permalink
Remove unnecessary else if.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 20, 2019
1 parent 7e3876f commit e9b20fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/world/bentobox/challenges/utils/GuiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,6 @@ 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.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);
Expand Down

0 comments on commit e9b20fe

Please sign in to comment.