This repository was archived by the owner on Feb 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
forge/src/main/java/org/localmc/tools/ftbqkeys/forge Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .localmc .tools .ftbqkeys .forge ;
22
33import me .shedaniel .architectury .platform .forge .EventBuses ;
4+ import net .minecraftforge .eventbus .api .IEventBus ;
5+ import net .minecraftforge .fml .event .lifecycle .FMLCommonSetupEvent ;
46import org .localmc .tools .ftbqkeys .FTBQKeysMod ;
57import net .minecraftforge .fml .common .Mod ;
68import net .minecraftforge .fml .javafmlmod .FMLJavaModLoadingContext ;
@@ -10,6 +12,13 @@ public class FTBQKeysModForge {
1012 public FTBQKeysModForge () {
1113 // Submit our event bus to let architectury register our content on the right time
1214 EventBuses .registerModEventBus (FTBQKeysMod .MODID , FMLJavaModLoadingContext .get ().getModEventBus ());
15+
16+ IEventBus modEventBus = EventBuses .getModEventBus (FTBQKeysMod .MODID ).get ();
17+
18+ modEventBus .addListener (this ::onInitialize );
19+ }
20+
21+ public void onInitialize (FMLCommonSetupEvent event ) {
1322 FTBQKeysMod .init ();
1423 }
1524}
You can’t perform that action at this time.
0 commit comments