Closed HafiTheCat closed 4 months ago
Fixed in v0.2.0. This is about all the documentation on the litematica format, which doesn't really specify much, so I just thought it'd always be positive. But you're right. Looking at the code, both the region sizes and positions use BlockPos
which can indeed be negative.
Actual Behavior
Loading a schematic with negative
Position x
value in the following waywill result in the following error:
Expected Behavior
Loading a schematic with negative
Position x
value will result in a successful load of the schematicSteps to Reproduce the Problem
Load any schematic (or used test file below) that contains a negative
Position x
value.Sidenote
I already mentioned this issue on a repo for a similar crate, which can be inspected here: SlopeCraft/mc_schem#1 The individual size values can also be negative, as can be seen by inspecting the attached schematic.
Specifications
Rust specifications
Rustc version: rustc 1.76.0 (07dca489a 2024-02-04) Toolchain: stable-x86_64-unknown-linux-gnu (default)
Schematic specifications
This
.litematic
was generated by the litematica mod, minecraft versionminecraft 1.20.4
. Type: LITEMATIC MinecraftDataVersion: 3465 Subversion: 1 Version: 6 Regions: 1testSchematic.zip