[x] The readme doesn't contain a resolution to my issue
[x] The example doesn't contain a resolution to my issue
Versions
node: 14
prismarine-template: latest
Detailed description of a problem
A clear and concise description of what the problem is.
Your current code
schematic = await Schematic.read(await fs.promises.readFile(pathToSchematic), version) // version is 1.12.2, Schematic is generated in 1.12.2 with Schematic.copy
Versions
Detailed description of a problem
A clear and concise description of what the problem is.
Your current code
Outputs:
Expected behavior
No NaN in output Palette
Additional context
The problem seams to be in this line https://github.com/PrismarineJS/prismarine-schematic/blob/8995a611440e9c06819d829193400ae818a6fee5/lib/states.js#L42
block
does not contain.minStateId
in 1.12. So Node.js addsundefined + 0
resulting in NaN