Open autowert66 opened 3 years ago
The problem is that 1.12.2 does not have states and therefor the schematic can't be converted to the sponge schematic format. The specifications don't handle the old system. Your workaround seems to be the only and best way to copy the schematic.
Versions
Detailed description of a problem
If I try to use
const schem2 = Schematic.read(await schem1.write())
the schem2 is not the same than schem1.Your current code
Expected behavior
Both console outputs should be the same!
Current behavior
Additional context
As a workaround, you can use
const schem2 = Schematic.fromJSON(schem1.toJSON());
. To use this, you have to update your package.json to use the git version:Then you need to run
npm install
again.