ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

[Bug] CustomPacketPayloadWrapper fails to initialize due to wrong reflection usage

Open iseal56 opened this issue 1 month ago • 0 comments

  • [x] This issue is not solved in a development build

Describe the bug CustomPacketPayloadWrapper fails to initialize on 1.21.1

To Reproduce Steps to reproduce the behavior:

  1. Attempt to initialize a CustomPacketPayloadWrapper instance (by doing new CustomPacketPayloadWrapper(...)
  2. Notice that when running it crashes because of line 52-62, with this stacktrace

Expected behavior The CustomPacketPayloadWrapper initializes correctly

Screenshots If applicable, add screenshots to help explain your problem.

Version Info 5.7.0, and the dump

Additional context I suppose this is not an issue with my usage in particular as the error happens within the static part of the initializer, particularly when attempting to get the "getPayloadId" method

iseal56 avatar Dec 29 '25 19:12 iseal56