I am trying to set some custom NBT tags to carry over through death. The player clone event only fires on the server, so I am trying to send the data to the client as well, which is necessary for some rendering things. Whenever I try to send the packet to the client, it crashes.
Here's the SimpleNetworkWrapper register line:
network.registerMessage(WTMessageSendPlayerData.WTMessageHandler.class, WTMessageSendPlayerData.class, 0, Side.CLIENT);
Here's the sender code (fired from server-side inside event handler):
WTCore.network.sendTo(new WTMessageSendPlayerData(new NBTTagCompound()), (EntityPlayerMP)event.getEntityPlayer());
But for some reason, I get this crash:
The message doesn't do anything yet, so I know it doesn't have to do with that part of the code. If you need code that hasn't been provided to help me solve the problem, let me know.