Skip to content

Fix ocean monument bounding boxes shifting on load#472

Open
Kojjyan wants to merge 1 commit intoApollounknowndev:rewrite-squaredfrom
Kojjyan:fix/ocean-monument-y-level_kojjyan_20260228
Open

Fix ocean monument bounding boxes shifting on load#472
Kojjyan wants to merge 1 commit intoApollounknowndev:rewrite-squaredfrom
Kojjyan:fix/ocean-monument-y-level_kojjyan_20260228

Conversation

@Kojjyan
Copy link
Copy Markdown

@Kojjyan Kojjyan commented Mar 1, 2026

Fixes #467

Tested in 1.21.11.

If you add the Tectonic mod or change its offset setting, ocean monuments that already exist keep their original Y-level. Their bounding boxes do not move. Only newly generated monuments use the offset.

Because of this, each monument’s bounding box always matches the structure’s actual blocks correctly.

How it works: Use the stored offset from NBT during deserialization instead of the current config value, preventing already-generated monuments from being re-shifted when the mod is added or the offset changes.

Use the stored offset from NBT during deserialization instead of the
current config value, preventing already-generated monuments from
being re-shifted when the mod is added or the offset changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Structure bounding box shifts in pre-generated chunks after enabling Tectonic

1 participant