Utility Nexus Admin (0.0.0-beta.13)
Curse Maven Snippet
What's new
v0.0.0-beta.13 - Fix onModConfig crash on non-file SERVER config
Fixed
- Uncaught event error on every server stop. beta.12 added a
ModConfigEventlistener that calledModConfig#getFullPath()unconditionally to capture the on-disk path of thepregen.tomlSERVER config. That method throwsIllegalStateExceptionfor a non-file config, which is exactly the state during dedicated-server shutdown (ModConfig.setConfig(null)still dispatches the event) and when an integrated client receives the SERVER config over the network. It surfaced asException caught during firing event: Cannot call getFullPath() on non-file config null at path utility_nexus/admin/pregen.toml. The listener now guards the call with a try/catch and a null check; when no real file path is available it keeps the existing<world>/serverconfig/utility_nexus/admin/pregen.tomlfallback. No behaviour change on a running dedicated server.
No config or gameplay changes. Drop-in replacement for beta.12.
This mod has no additional files

