From ca12c3629b5402e8df9f9a26e41303e8cf53b494 Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:24:52 +0100 Subject: [PATCH] fix: Fix incorrect Forge initializer --- .../src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forge/src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java b/forge/src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java index 1647adf0..af74cd8e 100644 --- a/forge/src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java +++ b/forge/src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java @@ -12,20 +12,21 @@ import net.minecraft.world.Container; import net.minecraftforge.common.capabilities.CapabilityToken; import net.minecraftforge.energy.IEnergyStorage; -import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fluids.capability.IFluidHandler; import net.minecraftforge.fluids.capability.IFluidHandlerItem; import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.items.IItemHandler; @Mod("balm") public class ForgeBalm { - public ForgeBalm(IEventBus modEventBus) { + public ForgeBalm(FMLJavaModLoadingContext context) { ((AbstractBalmConfig) Balm.getConfig()).initialize(); ExampleConfig.initialize(); Balm.getCommands().register(BalmCommand::register); + final var modEventBus = context.getModEventBus(); ForgeBalmWorldGen.initializeBalmBiomeModifiers(modEventBus); modEventBus.addListener(ForgeBalmClient::onInitializeClient);