diff --git a/forge/src/main/java/net/anweisen/notenoughpots/NotEnoughPotsForgeMod.java b/forge/src/main/java/net/anweisen/notenoughpots/NotEnoughPotsForgeMod.java index d05d2d9..2c0a6c7 100644 --- a/forge/src/main/java/net/anweisen/notenoughpots/NotEnoughPotsForgeMod.java +++ b/forge/src/main/java/net/anweisen/notenoughpots/NotEnoughPotsForgeMod.java @@ -12,8 +12,8 @@ public class NotEnoughPotsForgeMod { public static final DeferredRegister BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Constants.MOD_ID); - public NotEnoughPotsForgeMod() { - var eventBus = FMLJavaModLoadingContext.get().getModEventBus(); + public NotEnoughPotsForgeMod(FMLJavaModLoadingContext context) { + var eventBus = context.getModEventBus(); var bridge = new ForgePlatformBridge(eventBus); CommonClass.init(bridge); }