1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-27 03:17:49 +01:00

Fix for null shop item definition

This commit is contained in:
Zrips 2024-08-15 13:53:25 +03:00
parent 7a16af1078
commit a0dd4c2925

View File

@ -111,7 +111,7 @@ public final class ItemBoostManager {
jitem.setJobs(jobs);
jitem.setBoostMultiplier(b);
if (cfg.getC().isInt(one + ".levelFrom"))
jitem.setFromLevel(cfg.get(one + ".levelFrom", 0));
@ -197,8 +197,8 @@ public final class ItemBoostManager {
}
jitem.setItemString(itemString);
}
ITEMS.put(node, jitem);
if (jitem.getItem() != null)
ITEMS.put(node, jitem);
}
cfg.save();