Describe the bug
The resultRecord is only updated on pauses (including loading screens) and category completion, meaning if you reset using an atum keybind, you never open a pause menu, and an outdated resultRecord is saved.
To Reproduce
Steps to reproduce the behavior:
- Start a 1.15.2 run
- Loot a monument
- Reset
- Observe that rsg.obtain_gold_block is in events, but pick_gold_block is not in the record's timelines (in either the global folder or world folder)
Expected behavior
The record file should be up-to-date upon resetting.
Screenshots or logs
Set Speedrun #1030/speedrunigt/events.log
common.view_seed 0 0
rsg.obtain_iron_ingot 81758 70555
rsg.obtain_iron_pickaxe 90307 79105
rsg.obtain_gold_block 135705 118355
Set Speedrun #1030/speedrunigt/record.json
{
"...":"...",
"timelines": [],
"...":"..."
Versions info :
- MC Version: 1.15.2
- SpeedRunIGT Version: 14.2+1.15.2
- Fabric Loader Version: 0.16.14
Additional context
A possible solution could be to add INSTANCE.updateRecordString(); above writeRecordFile in the start method of InGameTimer.