Skip to content

Rebase #708 blockstate mapping migration onto current 263 - #712

Closed
lilnarco wants to merge 1 commit into
MCRcortex:263from
lilnarco:valley/263-mapping-migration
Closed

lilnarco wants to merge 1 commit into
MCRcortex:263from
lilnarco:valley/263-mapping-migration

Conversation

@lilnarco

Copy link
Copy Markdown

Supersede-rebase of #708 by @victorator (cursor/fix-old-world-blockstate-migration-0e17), which no longer applies after the October remapper commits on 263 (git apply --check fails on Mapper.java).

Same design, no behavior change vs #708: stamp data_version on save; datafix unversioned {Name, Properties} compounds from 2531 (not 0, avoiding the 1.13 flattener and RedstoneWireConnectionsFix); failed decodes stay air in memory without touching stored bytes (drops the random-block substitution); forceResaveStates iterates by id and skips all air. Adapted to HEAD's fastIterator loop style only.

Verification: all 4 MapperBlockStateMigrationTest tests pass (headless, JUnit), full compile green, client jar builds.

Happy to close this in favor of a rebase by the original author — just wanted the fix testable against current 263. Full credit to @victorator for the design, tests, and root-cause analysis.

Supersedes-rebase of victorator's PR MCRcortex#708 (cursor/fix-old-world-blockstate-migration-0e17), which no longer applies after the October remapper commits. Same design: stamp data_version on save, datafix unversioned {Name,Properties} from 2531, failed decodes stay air in memory without rewriting stored bytes, resave iterates by id. Adapted to HEAD's fastIterator loop style. All 4 MapperBlockStateMigrationTest tests pass.
@lilnarco

Copy link
Copy Markdown
Author

Closing per maintainer policy in #614 (no AI-made PRs will be merged) — my miss for not checking before opening. Leaving the branch visible in case the rebase itself is useful to @victorator for #708; no hard feelings either way.

@lilnarco lilnarco closed this Oct 10, 2026
@lilnarco
lilnarco deleted the valley/263-mapping-migration branch October 10, 2026 04:07
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.

1 participant