Added safe-check if skill material is null

This commit is contained in:
ASangarin 2020-10-16 20:34:41 +02:00
parent bc535130c5
commit f4bc755f2f

View File

@ -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))