Skip to content

Commit

Permalink
fix: server crash due to neo config screen registered on both sides
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jul 23, 2024
1 parent 79d7e22 commit 887e4d9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public ModonomiconNeo(IEventBus modEventBus, ModContainer modContainer) {
modEventBus.addListener((RegisterClientReloadListenersEvent e) -> {
e.registerReloadListener(BookDataManager.Client.get());
});

Client.registerConfigScreen(modContainer);
}
}

Expand Down Expand Up @@ -177,6 +179,10 @@ public static void onClientSetup(FMLClientSetupEvent event) {
});
}

public static void registerConfigScreen(ModContainer modContainer){
modContainer.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new);
}

/**
* Needs to be in the client inner class to not load clientlevel on server
*/
Expand Down

0 comments on commit 887e4d9

Please sign in to comment.