mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 00:14:45 +00:00
initialize config way earlier.
This commit is contained in:
3 files changed
+2
-9
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.falsepattern.lib.internal;
|
||||
|
||||
import com.falsepattern.lib.config.ConfigurationManager;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name;
|
||||
@@ -31,6 +32,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
||||
@Override
|
||||
public void injectData(Map<String, Object> data) {
|
||||
mcDir = (File) data.get("mcLocation");
|
||||
ConfigurationManager.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -61,11 +61,6 @@ public class FalsePatternLib {
|
||||
log.info("Version " + Tags.VERSION + " initialized!");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void construct(FMLConstructionEvent e) {
|
||||
proxy.construct(e);
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent e) {
|
||||
proxy.preInit(e);
|
||||
|
||||
@@ -22,10 +22,6 @@ public class CommonProxy {
|
||||
|
||||
protected Future<List<ModUpdateInfo>> updatesFuture;
|
||||
|
||||
public void construct(FMLConstructionEvent e) {
|
||||
ConfigurationManager.init();
|
||||
}
|
||||
|
||||
public void preInit(FMLPreInitializationEvent e) {
|
||||
try {
|
||||
ConfigurationManager.registerConfig(LibraryConfig.class);
|
||||
|
||||
Reference in new issue
Block a user