Upgrade older worlds when Horizon opens them, as 26.3 does
Opening a world saved by an older version runs the file fixes, level.dat and the DataFixers upgrades of every file instead of refusing it. The save round-trip harness treats a lit campfire's cooking progress as a timer in the vanilla views: Horizon saves it as loaded (stage 3 checks it exactly), and it moves on by however many ticks each vanilla server ran before data get. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-4
@@ -68,10 +68,7 @@ The registry loader checks data version, duplicate states, default IDs and
|
||||
block-name coverage. The local oracle exports all 35,723 state identities and
|
||||
defaults from vanilla. This imports identities, not block implementations,
|
||||
shapes or behavior. Registry exports and game-derived fixtures stay in `.local/`.
|
||||
Chunk access requires data version 5023. The DataFixerUpper chain is not ported:
|
||||
opening a world whose `level.dat` is older fails with a message pointing at
|
||||
`tools/upgrade_world.py`, which runs vanilla's own `--forceUpgrade` on a copy
|
||||
(exercised only against a current-version world; no older server jar is local). `BlockRegistry::resolve` rejects invalid property descriptors. The separate
|
||||
Chunk access requires data version 5023. A world saved by an older version is upgraded when it is opened, as 26.3 does: the file fixes (`FileFixerUpper`) and level.dat, then vanilla's DataFixers over every chunk, entity chunk, POI chunk, player, saved data, advancements and statistics file (`horizon_world::datafix`; vanilla upgrades each file as it reads it, Horizon all of them on opening). `tools/test_datafix_parity.py` compares the result with vanilla's own upgrade over worlds written by older server jars. Worlds older than the ported fixes are refused with a message pointing at `tools/upgrade_world.py`, which runs vanilla's `--forceUpgrade` on a copy. `BlockRegistry::resolve` rejects invalid property descriptors. The separate
|
||||
[block-state JSON codec](block-state-codecs.md) reproduces vanilla property
|
||||
fallback for compact and full JSON forms.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user