Fixed F Power Upgrade

This commit is contained in:
Driftay 2020-01-26 16:08:03 -05:00
parent ad56264c5d
commit 1a4c860c46

View File

@ -95,7 +95,7 @@ public class FUpgradeFrame {
private void updateFactionPowerBoost(Faction f) { private void updateFactionPowerBoost(Faction f) {
double boost = FactionsPlugin.getInstance().getConfig().getDouble("fupgrades.MainMenu.Power.Power-Boost.level-" + (f.getUpgrade(UpgradeType.POWER) + 1)); double boost = FactionsPlugin.getInstance().getConfig().getDouble("fupgrades.MainMenu.Power.Power-Boost.level-" + (f.getUpgrade(UpgradeType.POWER) + 1));
if (boost < 0.0) return; if (boost < 0.0) return;
f.setPowerBoost(f.getPower() + boost); f.setPowerBoost(boost);
} }