Skip to content

Commit 9a076e3

Browse files
authored
fix FastSchematicReaderV3 throwing / by 0 for 1-wide/long schematics (#3360)
fix divide by zero issue
1 parent 79582f5 commit 9a076e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public Clipboard read(final UUID uuid, final Function<BlockVector3, Clipboard> c
175175
default -> this.nbtInputStream.readTagPayloadLazy(type, 0);
176176
}
177177
if (clipboard == null && this.areDimensionsAvailable()) {
178-
clipboard = createOutput.apply(this.dimensions);
178+
clipboard = createOutput.apply(this.dimensions.toImmutable());
179179
}
180180
}
181181

0 commit comments

Comments
 (0)