forgot i already added 1 to the level
This commit is contained in:
parent
488eb78405
commit
4f38bfa949
@ -585,13 +585,13 @@ public class FUpgradesGUI implements Listener {
|
|||||||
|
|
||||||
private void updateTntBanks(Faction faction) {
|
private void updateTntBanks(Faction faction) {
|
||||||
int level = faction.getUpgrade(UpgradeType.TNT);
|
int level = faction.getUpgrade(UpgradeType.TNT);
|
||||||
int size = FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.TNT.tnt-limit.level-" + (level + 1));
|
int size = FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.TNT.tnt-limit.level-" + (level));
|
||||||
faction.setTntBankLimit(size);
|
faction.setTntBankLimit(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setWarpLimit(Faction faction) {
|
private void setWarpLimit(Faction faction) {
|
||||||
int level = faction.getUpgrade(UpgradeType.WARP);
|
int level = faction.getUpgrade(UpgradeType.WARP);
|
||||||
int size = FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Warps.warp-limit.level-" + (level + 1));
|
int size = FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Warps.warp-limit.level-" + (level));
|
||||||
faction.setWarpsLimit(size);
|
faction.setWarpsLimit(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user