From 900491795017b3916e9d422bb2b991f7ef20dfe6 Mon Sep 17 00:00:00 2001 From: Angelo <60273047+anweisen@users.noreply.github.com> Date: Tue, 12 Nov 2024 23:40:28 +0100 Subject: [PATCH] Use new, undeprecated way --- .../net/anweisen/notenoughpots/NotEnoughPotsForgeMod.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }