Fix KitUpgradePage not compiling

This commit is contained in:
Sam 2018-02-24 23:02:48 +00:00 committed by Alexander Meech
parent a9abfa4416
commit 11d80037c8

View File

@ -1,5 +1,7 @@
package mineplex.core.game.kit.ui;
import java.util.List;
import org.bukkit.Material;
import org.bukkit.entity.Player;
@ -35,7 +37,7 @@ public class KitUpgradePage extends KitPage
int i = 0;
int menuIndex = 11;
boolean previousUnlock = false;
for (String[] upgrades : upgradeTree.getUpgrades())
for (List<String> upgrades : upgradeTree.getUpgrades())
{
int displayI = i + 1;
int upgradeAtLevel = LinearUpgradeTree.getUpgradeAtLevel(i);
@ -70,7 +72,7 @@ public class KitUpgradePage extends KitPage
builder.setTitle(colour + "Rank " + (i + 1));
builder.addLore("Available at level " + upgradeAtLevel + (!unlocked ? " (Current Level: " + currentLevel + ")" : ""), "");
builder.addLore(upgrades);
upgrades.forEach(builder::addLore);
int fMenuIndex = menuIndex;