forked from Upstream/mmocore
Added safe-check if skill material is null
This commit is contained in:
parent
bc535130c5
commit
f4bc755f2f
@ -116,9 +116,9 @@ public abstract class Skill {
|
||||
}
|
||||
|
||||
public void update(FileConfiguration config) {
|
||||
name = config.getString("name");
|
||||
name = config.getString("name", "INVALID NAME");
|
||||
lore = config.getStringList("lore");
|
||||
icon = MMOCoreUtils.readIcon(config.getString("material"));
|
||||
icon = MMOCoreUtils.readIcon(config.getString("material", "DIRT"));
|
||||
|
||||
for (String modifier : modifiers.keySet())
|
||||
if (config.contains(modifier))
|
||||
|
Loading…
Reference in New Issue
Block a user