I've spent hours trying to get it fixed, but couldn't. Thanks coolAlias, that one small change was all that was needed.
Thanks, I will rework the message class entirely, your's is easier to use.
Hi!
Can someone please help me fix this NPE?
I've created some IEEP's that I want to sync from the server to the client for GUI rendering. The saving on serverside works just fine (i.e. EntityConstructingEvent and changing values serverside). After I added the PlayerJoinWorld event handler, I get an NPE on world join and am taken to the server selection screen.
NPE:
I am using the BaseMessage.java from MineMaarten's tutorial series http://pastebin.com/9ahZnbx9.
Here are my classes:
ExtendedPlayer.java http://pastebin.com/JrAhaeaJ
ExtendedPlayerHandler.java http://pastebin.com/DjmwAd3i
MessageSyncPlayerProps.java http://pastebin.com/Tp56qBVt