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 6
6
import cpw .mods .fml .common .DummyModContainer ;
7
7
import cpw .mods .fml .common .LoadController ;
8
8
import 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 ;
9
12
import lombok .Getter ;
10
13
import net .minecraft .launchwrapper .Launch ;
11
14
import org .apache .logging .log4j .LogManager ;
@@ -26,10 +29,15 @@ public FalsePatternLib() {
26
29
log .info ("Version " + Tags .VERSION + " initialized!" );
27
30
}
28
31
32
+ @ Mod .EventHandler
33
+ public void construct (FMLConstructionEvent e ) {
34
+ ConfigurationManager .init ();
35
+ }
36
+
29
37
@ SuppressWarnings ("UnstableApiUsage" )
30
38
@ Override
31
39
public boolean registerBus (EventBus bus , LoadController controller ) {
32
- ConfigurationManager . init ( );
40
+ bus . register ( this );
33
41
return true ;
34
42
}
35
43
}
You can’t perform that action at this time.
0 commit comments