Mes: fix implings (#1759)

Mes: fix implings
This commit is contained in:
ST0NEWALL
2019-10-11 17:02:08 -04:00
committed by GitHub

View File

@@ -644,8 +644,9 @@ public class MenuEntrySwapperPlugin extends Plugin
} }
} }
List<String> invItemNames = new ArrayList<>(); List<String> invItemNames = new ArrayList<>();
if (target.equals("gourmet impling jar")) switch (target)
{ {
case "gourmet impling jar":
if (client.getItemContainer(InventoryID.INVENTORY) != null) if (client.getItemContainer(InventoryID.INVENTORY) != null)
{ {
for (Item i : Objects.requireNonNull(client.getItemContainer(InventoryID.INVENTORY)).getItems()) for (Item i : Objects.requireNonNull(client.getItemContainer(InventoryID.INVENTORY)).getItems())
@@ -661,9 +662,7 @@ public class MenuEntrySwapperPlugin extends Plugin
menuManager.removeSwaps(target); menuManager.removeSwaps(target);
} }
} }
} break;
switch (target)
{
case "young impling jar": case "young impling jar":
if (client.getItemContainer(InventoryID.INVENTORY) != null) if (client.getItemContainer(InventoryID.INVENTORY) != null)
{ {