Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ClientMessageEvents Injection Points #3778

Merged

Conversation

kevinthegreat1
Copy link
Contributor

During the update to 1.20.5, the local variable accesses are changed in MessageHandler#onGameMessage, so that GAME and MODIFY_GAME would not fire if client.options.getHideMatchedNames() is false (which usually does not happen).

This PR updates that injection along with the ClientSendMessageEvents injection points to use LocalRef instead to make the code more resilient to updates. This has no behavior or api contract change, only a small bug fix.

@apple502j apple502j added bug Something isn't working priority:medium Medium priority PRs that should get reviews labels May 19, 2024
@modmuss50 modmuss50 added the merge me please Pull requests that are ready to merge label May 19, 2024
@modmuss50 modmuss50 merged commit a7dc0e4 into FabricMC:1.20.6 May 20, 2024
4 checks passed
modmuss50 pushed a commit that referenced this pull request May 20, 2024
@kevinthegreat1 kevinthegreat1 deleted the client-game-message-events-fix branch June 7, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working merge me please Pull requests that are ready to merge priority:medium Medium priority PRs that should get reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants