Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
-1 slots dont place.
Browse files Browse the repository at this point in the history
  • Loading branch information
prosavage committed Mar 11, 2019
1 parent c459468 commit 95840bd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ public void openMainMenu(FPlayer fme) {
List<Integer> 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);
}
Expand Down

0 comments on commit 95840bd

Please sign in to comment.