diff options
author | alemi <me@alemi.dev> | 2023-03-08 01:29:59 +0100 |
---|---|---|
committer | alemi <me@alemi.dev> | 2023-03-08 01:29:59 +0100 |
commit | e42f5245db86d3d673e31c5efcc1036c26baea37 (patch) | |
tree | 358de781f51be55e658e5ecb77284428f2d18372 /src/main | |
parent | 589ccc715fc918e8b80e645c9e13c337019c8c07 (diff) |
fix: load mods later
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/ftbsc/bscv/Boscovicino.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/ftbsc/bscv/Boscovicino.java b/src/main/java/ftbsc/bscv/Boscovicino.java index 19ca92f..a3a3f29 100644 --- a/src/main/java/ftbsc/bscv/Boscovicino.java +++ b/src/main/java/ftbsc/bscv/Boscovicino.java @@ -21,7 +21,7 @@ import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.ModLoadingContext; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.config.ModConfig.Type; -import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; +import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -43,7 +43,7 @@ public class Boscovicino implements ICommons { public static Friends friends() { return Boscovicino.friends; } public Boscovicino() { - FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup); + FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onSetupComplete); ForgeConfigSpec.Builder cfg = new ForgeConfigSpec.Builder(); CommandDispatcher<CommandSource> dp = this.dispatcher; @@ -73,7 +73,7 @@ public class Boscovicino implements ICommons { } } - private void clientSetup(final FMLClientSetupEvent event) { + private void onSetupComplete(final FMLLoadCompleteEvent event) { LOGGER.info("Initializing modules"); for (IModule m : modManager.mods) { |