Skip to content

Commit

Permalink
fix: Fix incorrect Forge initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jan 13, 2025
1 parent 1e37c22 commit ca12c36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions forge/src/main/java/net/blay09/mods/balm/forge/ForgeBalm.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ca12c36

Please sign in to comment.