mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 17:17:32 +00:00
move event bus loading to preInit
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -226,10 +226,16 @@ public class ConfigurationManager {
|
||||
return;
|
||||
}
|
||||
configDir = FileUtil.getMinecraftHome().toPath().resolve("config");
|
||||
FMLCommonHandler.instance().bus().register(instance);
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Internal, do not use.
|
||||
*/
|
||||
public static void registerBus() {
|
||||
FMLCommonHandler.instance().bus().register(instance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Internal, do not use.
|
||||
*
|
||||
|
||||
@@ -23,6 +23,7 @@ public class CommonProxy {
|
||||
protected Future<List<ModUpdateInfo>> updatesFuture;
|
||||
|
||||
public void preInit(FMLPreInitializationEvent e) {
|
||||
ConfigurationManager.registerBus();
|
||||
try {
|
||||
ConfigurationManager.registerConfig(LibraryConfig.class);
|
||||
} catch (ConfigException ex) {
|
||||
|
||||
Reference in new issue
Block a user