EncoderException when sending packet
IM-IgniteDEV opened this issue ยท 3 comments
Describe the question
Alright, so i use ProtocolLIB + PacketWrapper and when I send a packet to player it kick him with error " Internal Exception: Io.netty.handler.codec.EncoderException: java.lang.NullPointerException",
in the console all i can see is
[17:30:17 ERROR]: java.lang.NullPointerException
[17:30:17 INFO]: IgniteDEV lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException
Version of minecraft: 1.13.2
Expected behavior
I want to send metadata with item to itemframe.
You're going to want to use the data watcher registry along with a data watcher object. The item stack will also probably have to be wrapped in an optional (I forget exactly when they made that change, it might have been 1.13)