Skip to content

Commit

Permalink
Use new, undeprecated way
Browse files Browse the repository at this point in the history
  • Loading branch information
anweisen committed Nov 12, 2024
1 parent 4b93f3d commit 9004917
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class NotEnoughPotsForgeMod {

public static final DeferredRegister<Block> 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);
}
Expand Down

0 comments on commit 9004917

Please sign in to comment.