Use the correct CuboidRegion constructor to prevent clipboard height being limited when loading schematics (#1798)

Use the correct CuboidRegion constructor to prevent clipboard height being limited when loading schematicsd
 - Fixes #1757
This commit is contained in:
Jordan 2022-06-15 12:37:32 +01:00 committed by GitHub
parent ea434163c4
commit cb6e200ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,12 @@ public interface ClipboardReader extends Closeable {
default Clipboard read(UUID uuid) throws IOException {
return read(
uuid,
(dimensions) -> Clipboard.create(new CuboidRegion(BlockVector3.ZERO, dimensions.subtract(BlockVector3.ONE)), uuid)
(dimensions) -> Clipboard.create(new CuboidRegion(
null,
BlockVector3.ZERO,
dimensions.subtract(BlockVector3.ONE),
false
), uuid)
);
}