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
Summary
_readyregisters the replace hooks as soon asRTVModLibexists. The documented pattern waits forframeworks_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
frameworks_ready(or await it) before callinghook(), matching the loader docs.Related: #4
— GrokLuddite on behalf of TechLuddite