Marlian
3bcf588fbe
Fix crash when loading saved tutorial worlds ( #1001 )
...
writeRuleFile() was missing the schematic file count integer before the schematic entries. The reader in readRuleFile() expected this count, causing a stream misalignment that led to an assertion failure (Unrecognised schematic version) when reloading a saved tutorial world.
The fix writes the count on save and adds backward-compatible reading that detects old saves (without count) via a peek heuristic and falls back to count-less parsing.
Co-authored-by: MCbabel <MCbabel@users.noreply.github.com >
2026-03-09 22:02:39 -05:00
..
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-08 18:08:36 -05:00
2026-03-07 03:31:30 +07:00
2026-03-06 02:11:18 +07:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-01 12:16:08 +08:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-08 18:08:36 -05:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-07 03:31:30 +07:00
2026-03-06 02:11:18 +07:00
2026-03-08 18:08:36 -05:00
2026-03-08 18:08:36 -05:00
2026-03-08 18:08:36 -05:00
2026-03-09 22:02:39 -05:00
2026-03-07 23:58:51 +07:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-08 18:08:36 -05:00
2026-03-01 12:16:08 +08:00
2026-03-01 12:16:08 +08:00
2026-03-01 12:16:08 +08:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-01 12:16:08 +08:00
2026-03-06 02:11:18 +07:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-03 03:04:10 +08:00
2026-03-08 18:08:36 -05:00
2026-03-02 17:37:16 +07:00
2026-03-06 02:11:18 +07:00
2026-03-01 12:16:08 +08:00
2026-03-06 02:11:18 +07:00
2026-03-01 12:16:08 +08:00
2026-03-06 02:11:18 +07:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-01 12:16:08 +08:00
2026-03-08 18:08:36 -05:00
2026-03-01 12:16:08 +08:00