Skip to content

Commit

Permalink
fix: write as v2 with 1.20.4 data version
Browse files Browse the repository at this point in the history
  • Loading branch information
mworzala committed Mar 11, 2024
1 parent 091f5aa commit 20f680d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/hollowcube/schem/SchematicWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 20f680d

Please sign in to comment.