Skip to content

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

@iseal56

Description

@iseal56
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions