From e42f5245db86d3d673e31c5efcc1036c26baea37 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 8 Mar 2023 01:29:59 +0100 Subject: fix: load mods later --- src/main/java/ftbsc/bscv/Boscovicino.java | 6 +++--- 1 file 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 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) { -- cgit v1.2.3-56-ga3b1