File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/com/falsepattern/lib/internal Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 66import cpw .mods .fml .common .DummyModContainer ;
77import cpw .mods .fml .common .LoadController ;
88import cpw .mods .fml .common .MetadataCollection ;
9+ import cpw .mods .fml .common .Mod ;
10+ import cpw .mods .fml .common .event .FMLConstructionEvent ;
11+ import cpw .mods .fml .common .event .FMLPreInitializationEvent ;
912import lombok .Getter ;
1013import net .minecraft .launchwrapper .Launch ;
1114import org .apache .logging .log4j .LogManager ;
@@ -26,10 +29,15 @@ public FalsePatternLib() {
2629 log .info ("Version " + Tags .VERSION + " initialized!" );
2730 }
2831
32+ @ Mod .EventHandler
33+ public void construct (FMLConstructionEvent e ) {
34+ ConfigurationManager .init ();
35+ }
36+
2937 @ SuppressWarnings ("UnstableApiUsage" )
3038 @ Override
3139 public boolean registerBus (EventBus bus , LoadController controller ) {
32- ConfigurationManager . init ( );
40+ bus . register ( this );
3341 return true ;
3442 }
3543}
You can’t perform that action at this time.
0 commit comments