Fixed issue #821 about skill tree nodes not loading properly.

This commit is contained in:
Ka0rX 2023-05-07 14:29:27 +01:00
parent fe0996b01b
commit 13440600a8

View File

@ -71,7 +71,7 @@ public class SkillTreeNode implements ExperienceObject {
MMOCore.log("Could not find node display for status " + ymlStatus + " for node " + id + " in tree " + tree.getId() + ". Using default display."); MMOCore.log("Could not find node display for status " + ymlStatus + " for node " + id + " in tree " + tree.getId() + ". Using default display.");
continue; continue;
} }
icons.put(status, new Icon(config.getConfigurationSection("display." + status.name().toLowerCase()))); icons.put(status, new Icon(config.getConfigurationSection("display." +MMOCoreUtils.ymlName(status.name()))));
} }
} }
name = Objects.requireNonNull(config.getString("name"), "Could not find node name"); name = Objects.requireNonNull(config.getString("name"), "Could not find node name");