Skip to content

Fix axiom schematics crashing the plot#208

Merged
StackDoubleFlow merged 4 commits intoMCHPR:masterfrom
BramOtte:axiom-schematics-offset
Mar 25, 2026
Merged

Fix axiom schematics crashing the plot#208
StackDoubleFlow merged 4 commits intoMCHPR:masterfrom
BramOtte:axiom-schematics-offset

Conversation

@BramOtte
Copy link
Copy Markdown
Contributor

For some reason Axiom uses the version 3 format for the offset but specifies version 2, thus trying to load in a schematic generated by the Axiom mod would crash the plot.

This fixes that by also checking for the Offset property for sponge version 2.

@StackDoubleFlow
Copy link
Copy Markdown
Member

At some point we should also handle cases where those fields don't exist at all. The Sponge Schematic Specification actually specifies Offset to be an optional field with a default of [0, 0, 0]. Also, generally speaking, schematic loading should never crash the plot.

Copy link
Copy Markdown
Member

@StackDoubleFlow StackDoubleFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this

Comment thread crates/core/src/plot/worldedit/schematic.rs Outdated
Comment thread crates/schematic/src/lib.rs
@BramOtte BramOtte force-pushed the axiom-schematics-offset branch from f95ba20 to c358e03 Compare December 29, 2025 14:35
@BramOtte
Copy link
Copy Markdown
Contributor Author

I accidentally clicked request review, don't merge this until I have done tests.

@BramOtte
Copy link
Copy Markdown
Contributor Author

BramOtte commented Dec 29, 2025

I have done some rudimentary tests, loading in mpu7, mpu8, iris (various ages of worldedit schematics) and a simple Axiom schematic all seem to load correctly now

@BramOtte BramOtte force-pushed the axiom-schematics-offset branch from 0195a15 to d97d65c Compare March 25, 2026 19:59
@StackDoubleFlow StackDoubleFlow merged commit 3a04526 into MCHPR:master Mar 25, 2026
9 checks passed
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.

2 participants