File tree Expand file tree Collapse file tree
neoforge/src/main/java/dev/nanite/library/neo/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import net .minecraft .resources .Identifier ;
66import net .minecraft .server .packs .resources .PreparableReloadListener ;
77import net .neoforged .api .distmarker .Dist ;
8+ import net .neoforged .bus .api .IEventBus ;
89import net .neoforged .fml .common .Mod ;
910import net .neoforged .neoforge .client .event .AddClientReloadListenersEvent ;
1011import net .neoforged .neoforge .common .NeoForge ;
@@ -19,10 +20,10 @@ public class NaniteLibraryClientNeoForge {
1920
2021 private final NaniteLibraryClient libraryClient ;
2122
22- public NaniteLibraryClientNeoForge () {
23+ public NaniteLibraryClientNeoForge (IEventBus modEventBus ) {
2324 libraryClient = new NaniteLibraryClient ();
2425
25- NeoForge . EVENT_BUS .addListener (this ::addReloadListeners );
26+ modEventBus .addListener (this ::addReloadListeners );
2627 }
2728
2829 private void addReloadListeners (AddClientReloadListenersEvent event ) {
You can’t perform that action at this time.
0 commit comments