diff options
| author | Marlian <84173858+MCbabel@users.noreply.github.com> | 2026-03-10 04:02:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 22:02:39 -0500 |
| commit | 3bcf588fbe041bd9d81f51348c3e98876dc9d4e2 (patch) | |
| tree | af3dfc0f2e28ed9f2e7cb752eb410ec55a4d4df0 /Minecraft.Client/BatModel.cpp | |
| parent | 58c236ead5c35248a9c993c7b296e41c2799d305 (diff) | |
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>
Diffstat (limited to 'Minecraft.Client/BatModel.cpp')
0 files changed, 0 insertions, 0 deletions
