Placing a Proxy or Materializer on a dedicated server causes client to crash
NioXen opened this issue ยท 2 comments
Issue type:
- ๐ Bug
Short description:
When running a dedicated server, placing a Materializer or a Proxy causes the client to crash with a Null Pointer Exception:
java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.registryAccess()" because the return value of "net.neoforged.neoforge.server.ServerLifecycleHooks.getCurrentServer()" is null
The server remains up and only reports a disconnection error.
[Netty Server IO #1/ERROR] [minecraft/Connection]: Exception caught in connection
java.net.SocketException: Connection reset
Interestingly this issue does not occur when running a single player game, or running a LAN game directly from the client - it only occurs when using a dedicated server.
If a world that already has these blocks placed is loaded on the server, then no client can connect to the server (but the server does not crash).
Steps to reproduce the problem:
- Download the FTB Unstable 1.20 (MC 1.21) server files
- Remove all mods except Integrated Dynamics, Integrated Terminals, Integrated Crafting, Integrated Tunnels, Common Capabilities, and CyclopsCore
- Download the FTB Unstable 1.20 (MC 1.21) client files through FTB App
- Remove all mods except those listed in step 2
- Run the dedicated server with
run.bat
and a fresh world - Connect to the server
- Try to place a Proxy or Materializer
- Client crashes to desktop with a Null Pointer Exception
Expected behaviour:
I am able to place a Materializer or Proxy in the world
Versions:
- This mod: 1.23.1
- Minecraft: 1.21
- Mod loader version: Neoforge 21.0.167
Have reported the same issue on FTB Modpack Issues but have reproduced the problem here with only this mod installed (and thought it might be useful!)