Skip to content

Commit e385902

Browse files
committed
move event bus loading to preInit
1 parent 7e7fea9 commit e385902

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/com/falsepattern/lib/config/ConfigurationManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,16 @@ private static void init() {
226226
return;
227227
}
228228
configDir = FileUtil.getMinecraftHome().toPath().resolve("config");
229-
FMLCommonHandler.instance().bus().register(instance);
230229
initialized = true;
231230
}
232231

232+
/**
233+
* Internal, do not use.
234+
*/
235+
public static void registerBus() {
236+
FMLCommonHandler.instance().bus().register(instance);
237+
}
238+
233239
/**
234240
* Internal, do not use.
235241
*

src/main/java/com/falsepattern/lib/internal/proxy/CommonProxy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class CommonProxy {
2323
protected Future<List<ModUpdateInfo>> updatesFuture;
2424

2525
public void preInit(FMLPreInitializationEvent e) {
26+
ConfigurationManager.registerBus();
2627
try {
2728
ConfigurationManager.registerConfig(LibraryConfig.class);
2829
} catch (ConfigException ex) {

0 commit comments

Comments
 (0)