diff --git a/src/main/java/net/hollowcube/schem/SchematicWriter.java b/src/main/java/net/hollowcube/schem/SchematicWriter.java index 41c0795..de78ad3 100644 --- a/src/main/java/net/hollowcube/schem/SchematicWriter.java +++ b/src/main/java/net/hollowcube/schem/SchematicWriter.java @@ -14,8 +14,11 @@ public class SchematicWriter { - public static byte@NotNull [] write(@NotNull Schematic schematic) { + public static byte @NotNull [] write(@NotNull Schematic schematic) { MutableNBTCompound schematicNBT = new MutableNBTCompound(); + schematicNBT.setInt("Version", 2); + schematicNBT.setInt("DataVersion", 3700); + Point size = schematic.size(); schematicNBT.setShort("Width", (short) size.x()); schematicNBT.setShort("Height", (short) size.y());