Skip to content

fix: correct critical bugs in ScoreboardDatabaseManager and Stream cl…#410

Merged
conmaster2112 merged 2 commits into
JaylyDev:mainfrom
byKoro:main
May 20, 2026
Merged

fix: correct critical bugs in ScoreboardDatabaseManager and Stream cl…#410
conmaster2112 merged 2 commits into
JaylyDev:mainfrom
byKoro:main

Conversation

@byKoro
Copy link
Copy Markdown
Contributor

@byKoro byKoro commented May 19, 2026

fix: correct critical bugs in ScoreboardDatabaseManager and Stream classes

  • fix: clear() and rebuild()/rebuildAsync() using bare scoreboard instead of getScoreboard()
  • fix: CustomDatabase spreading params correctly to super(...params)
  • fix: inverted instanceof check in constructor type validation
  • fix: inverted property-in-object checks across 4 Stream methods
  • fix: loadAsync() now properly yields between iterations with await null

byKoro and others added 2 commits May 19, 2026 17:49
…asses

- fix: clear() and rebuild()/rebuildAsync() using bare `scoreboard` instead of getScoreboard()
- fix: CustomDatabase spreading params correctly to super(...params)
- fix: inverted instanceof check in constructor type validation
- fix: inverted property-in-object checks across 4 Stream methods
- fix: loadAsync() now properly yields between iterations with await null
Updated author and project links, added follow-up changes notes and warnings regarding legacy code.
Copy link
Copy Markdown
Collaborator

@conmaster2112 conmaster2112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is from pre-dynamic properties are, where we used scoreboards to save persistent data.

await null hack no longer behaves as used to, await null no longer yields tick execution, so all microtasks has to finish before tick ends. That means async or sync functions has same impact on game freezing when saving large amount of data

@conmaster2112 conmaster2112 merged commit 1854dda into JaylyDev:main May 20, 2026
1 check passed
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