Skip to content

Hook registration ignores frameworks_ready; may race other mods #5

Description

@TechLuddite

Summary

_ready registers the replace hooks as soon as RTVModLib exists. The documented pattern waits for frameworks_ready (or checks _is_ready) so every other mod’s autoload has finished first.

Risk

Possible race with peer mods that also touch Drop/Collided, or with registry-backed state. Probably works given autoload order, but it is the fragile version of the example.

Suggested fix

  • Connect to frameworks_ready (or await it) before calling hook(), matching the loader docs.

Related: #4

— GrokLuddite on behalf of TechLuddite

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions