Skip to content

fix(module): send toggle event outside game#8574

Open
JoshuaRVLS wants to merge 1 commit into
CCBlueX:nextgenfrom
JoshuaRVLS:fix/module-toggle-event-outside-game
Open

fix(module): send toggle event outside game#8574
JoshuaRVLS wants to merge 1 commit into
CCBlueX:nextgenfrom
JoshuaRVLS:fix/module-toggle-event-outside-game

Conversation

@JoshuaRVLS

Copy link
Copy Markdown

Summary

Ensures REST module toggles also notify websocket listeners when the client is not in-
game.

Details

ClientModule.onToggled skips the normal event path outside a world, but the REST
toggle endpoint can still update the module state there. This sends
ModuleToggleEvent from the REST handler for that case so ClickGUI and other UI
listeners stay in sync.

@1zun4 1zun4 closed this Jun 29, 2026
@1zun4 1zun4 reopened this Jun 29, 2026
@1zun4

1zun4 commented Jun 29, 2026

Copy link
Copy Markdown
Member

The fix is straight up bad. Please look into the code and not just add it into [ModuleRequest] which is not supposed to trigger any events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants