In version 1.20.4, the NBT tag format for signs was changed, which caused the method String getLine(BaseBlock baseBlock, int line) to not work for schematics created on 1.20.4.
Examples of the new and old formats are given below.
Tested the current code on WorldEdit and FastAsyncWorldEdit for schematics from 1.20.4, as well as on structures from the free pack.
Changes
Moved the static methods for parsing lines from com.magmaguy.betterstructures.schematics.SchematicContainer to com.magmaguy.betterstructures.util.WorldEditUtils.
Also implemented separate methods for parsing for FAWE and WorldEdit. Added javadoc comments to all of this.
Description
In version 1.20.4, the NBT tag format for signs was changed, which caused the method String getLine(BaseBlock baseBlock, int line) to not work for schematics created on 1.20.4. Examples of the new and old formats are given below.
Tested the current code on WorldEdit and FastAsyncWorldEdit for schematics from 1.20.4, as well as on structures from the free pack.
Changes
Moved the static methods for parsing lines from
com.magmaguy.betterstructures.schematics.SchematicContainer
tocom.magmaguy.betterstructures.util.WorldEditUtils
.Also implemented separate methods for parsing for FAWE and WorldEdit. Added javadoc comments to all of this.
FastAsyncWorldEdit
Old format
New format
WorldEdit
Old format
New format