From 95840bdfce1fc7e8f6d5497eb7d876ab57f900ab Mon Sep 17 00:00:00 2001 From: ProSavage Date: Mon, 11 Mar 2019 02:29:12 -0500 Subject: [PATCH] -1 slots dont place. --- .../factions/zcore/fupgrades/FUpgradesGUI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradesGUI.java b/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradesGUI.java index b98b8d93..8a636412 100644 --- a/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradesGUI.java +++ b/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradesGUI.java @@ -43,16 +43,16 @@ public class FUpgradesGUI implements Listener { List chestSlots = SavageFactions.plugin.getConfig().getIntegerList("fupgrades.MainMenu.Chest.ChestItem.slots"); for (int i = 0; i < cropSlots.size(); i++) - inventory.setItem(cropSlots.get(i), items[2]); + if (cropSlots.get(i) != -1) inventory.setItem(cropSlots.get(i), items[2]); for (int i = 0; i < spawnerSlots.size(); i++) - inventory.setItem(spawnerSlots.get(i), items[1]); + if (spawnerSlots.get(i) != -1) inventory.setItem(spawnerSlots.get(i), items[1]); for (int i = 0; i < expSlots.size(); i++) - inventory.setItem(expSlots.get(i), items[0]); + if (expSlots.get(i) != -1) inventory.setItem(expSlots.get(i), items[0]); for (int i = 0; i < chestSlots.size(); i++) - inventory.setItem(chestSlots.get(i), items[3]); + if (chestSlots.get(i) != -1) inventory.setItem(chestSlots.get(i), items[3]); fme.getPlayer().openInventory(inventory); }