ProtocolLib
ProtocolLib copied to clipboard
Fix packet instantiation on 1.20.6
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.