Guide NeoForge 1.0.1 (Server Fix)
Curse Maven Snippet
What's new
π Version 1.0.1 (NeoForge) β Complete client/server architecture separation, dedicated server compatibility for NeoForge 1.21.1.
π§ Core Architecture & Server Safety:
β’ Full Client/Server Decoupling β Completely refactored the mod's class hierarchy to strictly separate client-side GUI and rendering logic from server-side data and networking. All screens, renderers, and input handlers are now annotated with
@OnlyIn(Dist.CLIENT), preventing any accidental classloading on dedicated servers.β’ Safe Screen Opener Proxy β Introduced
GuideScreenOpener as a client-only bridge to safely instantiate screens without exposing Screen subclasses to server code, eliminating BootstrapMethodError crashes when opening the guide book.β’ Fixed AutomaticEventSubscriber Loading β Ensured that all client-only subscribers (commands, key mappings, GUI events) explicitly use
@EventBusSubscriber(value = Dist.CLIENT), preventing the NeoForge AutomaticEventSubscriber from loading them on dedicated servers.β’ FMLEnvironment-Aware Invocation β Replaced all direct references to client classes from common items with
FMLEnvironment.dist.isClient() checks, guaranteeing zero classloading violations on the server side.β’ Modern Network Layer β Ported the mod's packet system to NeoForge's
CustomPacketPayload and PayloadRegistrar, ensuring seamless multiplayer quest synchronization without legacy channel overhead.
β¨ What This Means:
β
NeoForge servers no longer crash on startup when Guide is installed.
β
Mod can be safely added to any NeoForge 1.21.1 modpack without server-side issues.
β
All client features (GUI, projection, sounds, mob renderers) remain fully functional in singleplayer and on servers for connected clients.
β
Achieves feature parity with the Forge branch while utilizing native NeoForge APIs.
This mod has no additional files

