Skip to content

Conversation

@beanbag44
Copy link
Collaborator

Makes the priority field in listeners an updatableLazy so that modules can adjust their priority and update the sorting within the listener collections.

A modules priority, if being set (which is only necessary if it might conflict with other modules), should be set at the beginning of the init block. This is just as a default and can be changed by the user in-game.

The listener collections are updated by removing the owners listeners, updating their priority, and adding them back again. This minimizes cost, and resorting only occurs when the user changes a module priority

@beanbag44 beanbag44 requested a review from emyfops January 11, 2026 12:12
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