From 68f6fea66a13cb68101a7946836970579cde1a10 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 24 Sep 2019 14:35:55 -0700 Subject: [PATCH] Fix the serialized config loader --- .../java/com/gmail/nossr50/config/SkillConfigFactory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/config/SkillConfigFactory.java b/src/main/java/com/gmail/nossr50/config/SkillConfigFactory.java index a5f6a2b78..56b54b0bd 100644 --- a/src/main/java/com/gmail/nossr50/config/SkillConfigFactory.java +++ b/src/main/java/com/gmail/nossr50/config/SkillConfigFactory.java @@ -2,12 +2,13 @@ package com.gmail.nossr50.config; import com.gmail.nossr50.config.hocon.SerializedConfigLoader; import com.gmail.nossr50.datatypes.skills.PrimarySkillType; +import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.util.StringUtils; public class SkillConfigFactory { - protected static SerializedConfigLoader initSkillConfig(PrimarySkillType primarySkillType, Class clazz) { - return new SerializedConfigLoader(clazz, + protected static SerializedConfigLoader initSkillConfig(mcMMO pluginRef, PrimarySkillType primarySkillType, Class clazz) { + return new SerializedConfigLoader(pluginRef, clazz, primarySkillType.toString().toLowerCase() + ".conf", StringUtils.getCapitalized(primarySkillType.toString()), null);