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:
parent
7a16af1078
commit
a0dd4c2925
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user