File tree Expand file tree Collapse file tree
java/com/xxmicloxx/NoteBlockAPI/forge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import com .xxmicloxx .NoteBlockAPI .NoteBlockAPI ;
44import dev .architectury .platform .forge .EventBuses ;
5- import net .minecraftforge .eventbus .api .IEventBus ;
65import net .minecraftforge .fml .common .Mod ;
6+ import net .minecraftforge .fml .javafmlmod .FMLJavaModLoadingContext ;
77
88@ Mod (NoteBlockAPI .MOD_ID )
99public final class NoteBlockAPIForge {
10- public NoteBlockAPIForge (IEventBus modBus ) {
10+ public NoteBlockAPIForge (FMLJavaModLoadingContext context ) {
1111 // Submit our event bus to let Architectury API register our content on the right time.
12- EventBuses .registerModEventBus (NoteBlockAPI .MOD_ID , modBus );
12+ EventBuses .registerModEventBus (NoteBlockAPI .MOD_ID , context . getModEventBus () );
1313
1414 // Run our common setup.
1515 NoteBlockAPI .init ();
Original file line number Diff line number Diff line change 1+ {
2+ "pack" : {
3+ "description" : " NoteBlockAPI" ,
4+ "forge:server_data_pack_format" : 15 ,
5+ "pack_format" : 15
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments