Fixed class exp sources

This commit is contained in:
Indyuce 2022-08-01 14:09:55 +02:00
parent ce17a1f577
commit 1ea785e4bb

View File

@ -154,8 +154,8 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
"Could not load option '" + key + "' from class '" + key + "': " + exception.getMessage());
}
if (config.contains("main-exp-sources.yml")) {
for (String key : config.getStringList("main-exp-sources.yml"))
if (config.contains("main-exp-sources")) {
for (String key : config.getStringList("main-exp-sources"))
try {
MMOCore.plugin.experience.registerSource(MMOCore.plugin.loadManager.loadExperienceSource(new MMOLineConfig(key), this));
} catch (IllegalArgumentException exception) {