ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

Fix packet instantiation on 1.20.6

Open Brokkonaut opened this issue 9 months ago • 8 comments

I am using Unsafe, because the packets were not creatable from a null stream.

Other options would be pre-created serialized data that could be read to instantiate the packets or accessing the constructors via reflection and filling in all the parameters.

Probably not mergeable because of the code style but at least it works.

Brokkonaut avatar May 21 '24 19:05 Brokkonaut