Unlock max upgrade tier for 'Size'

This commit is contained in:
Esophose 2019-03-07 14:11:27 -07:00
parent 48a0562818
commit 5f482d2a71
2 changed files with 2 additions and 10 deletions

View File

@ -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<Upgrade> upgrades = new ArrayList<Upgrade>();
List<Upgrade> 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;
}
}
}

View File

@ -1594,7 +1594,7 @@ Menu:
- ""
- "&7Status&8: &a&lCLAIMED"
- ""
- "&cYou have unlocked ths upgrade!"
- "&cYou have unlocked this upgrade!"
Spawner:
Displayname: "&bSpawer Boost"
Claimable: