You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Please read the FAQ (https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/) and post logs as described there for further help.
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
It says that '.get()' is deprecated since version 1.21.1 and has been marked for removal.
How should I replace this line or section of code so it works?
Or is there a way to fix it?
Full Block of Code:
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); // This is the line that's messed up... I don't know why
modEventBus.addListener(this::commonSetup);
MinecraftForge.EVENT_BUS.register(this);
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.