Server crash on first run - java.lang.NoClassDefFoundError
cauliflower69 opened this issue ยท 5 comments
Apologies, I've only just seen this report. I'll set up a server/client instance and try to reproduce this, as I've made a couple of dedicated server mistakes in the past.
That was simple to reproduce! I'll get that fixed up and push a new release as soon as I understand what has changed.
I've tested 1.8.9 as well, but this only seems to be an issue on 1.9.
The packet handler is crashing for the message being sent to the client. The packet handler has client code in it, however that handler is also being registered (correctly) on the server.
So I need to provide a dummy handler for the server to use.
https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe60_network_messages/StartupCommon.java