From 5f482d2a71f98f0bf13e2c48364bb8bcf88733aa Mon Sep 17 00:00:00 2001 From: Esophose Date: Thu, 7 Mar 2019 14:11:27 -0700 Subject: [PATCH] Unlock max upgrade tier for 'Size' --- .../goodandevil/skyblock/upgrade/UpgradeManager.java | 10 +--------- src/main/resources/language.yml | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/me/goodandevil/skyblock/upgrade/UpgradeManager.java b/src/main/java/me/goodandevil/skyblock/upgrade/UpgradeManager.java index 37aed5c6..18a1c0c7 100644 --- a/src/main/java/me/goodandevil/skyblock/upgrade/UpgradeManager.java +++ b/src/main/java/me/goodandevil/skyblock/upgrade/UpgradeManager.java @@ -49,10 +49,6 @@ public class UpgradeManager { upgrades.add(new Upgrade(configLoad.getDouble("Upgrades.Size." + tierList + ".Cost"), configLoad.getInt("Upgrades.Size." + tierList + ".Value"))); - - if (upgrades.size() == 5) { - break; - } } upgradeStorage.put(Upgrade.Type.Size, upgrades); @@ -71,7 +67,7 @@ public class UpgradeManager { } public void addUpgrade(Upgrade.Type type, int value) { - List upgrades = new ArrayList(); + List upgrades = new ArrayList<>(); Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "upgrades.yml")); FileConfiguration configLoad = config.getFileConfiguration(); @@ -80,10 +76,6 @@ public class UpgradeManager { for (String tierList : configLoad.getConfigurationSection("Upgrades.Size").getKeys(false)) { upgrades.add(new Upgrade(configLoad.getDouble("Upgrades.Size." + tierList + ".Cost"), configLoad.getInt("Upgrades.Size." + tierList + ".Value"))); - - if (upgrades.size() == 4) { - break; - } } } diff --git a/src/main/resources/language.yml b/src/main/resources/language.yml index 0e6c2779..2fd1dc1d 100644 --- a/src/main/resources/language.yml +++ b/src/main/resources/language.yml @@ -1594,7 +1594,7 @@ Menu: - "" - "&7Status&8: &a&lCLAIMED" - "" - - "&cYou have unlocked ths upgrade!" + - "&cYou have unlocked this upgrade!" Spawner: Displayname: "&bSpawer Boost" Claimable: