Archived
0

Fixed getConfig accessing user data instead of config data

This commit is contained in:
Pepich
2017-10-17 11:08:09 +02:00
parent 08a584c8b0
commit b8bfb06f6b

View File

@@ -36,7 +36,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.Stream)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 2, compatible = 4)
@Version(major = 4, minor = 1, revision = 3, compatible = 4)
public final class DataManager implements CoreModule, Listener
{
protected final File dataFolder = new File(Main.plugin.getDataFolder(), "data");
@@ -793,7 +793,7 @@ public final class DataManager implements CoreModule, Listener
public static Object getConfigOrDefault(String key, Object fallback)
{
return getOrDefault(Utils.getCaller("DataManager"), key, fallback);
return getConfigOrDefault(Utils.getCaller("DataManager"), key, fallback);
}
public static Object getConfigOrDefault(String module, String key, Object fallback)