1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Lets allow integers for item boosts

This commit is contained in:
Zrips 2019-10-29 15:58:35 +02:00
parent 64bbc0fe29
commit 3b961ab9a3

View File

@ -159,7 +159,7 @@ public class ItemBoostManager {
BoostMultiplier b = new BoostMultiplier();
for (CurrencyType oneC : CurrencyType.values()) {
if (cfg.getC().isDouble(one + "." + oneC.toString().toLowerCase() + "Boost"))
if (cfg.getC().isDouble(one + "." + oneC.toString().toLowerCase() + "Boost") || cfg.getC().isInt(one + "." + oneC.toString().toLowerCase() + "Boost"))
b.add(oneC, cfg.get(one + "." + oneC.toString().toLowerCase() + "Boost", 1D) - 1);
}