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
Dieser Commit ist enthalten in:
Jordan 2022-06-15 12:37:32 +01:00 committet von GitHub
Ursprung ea434163c4
Commit cb6e200ca6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -61,7 +61,12 @@ public interface ClipboardReader extends Closeable {
default Clipboard read(UUID uuid) throws IOException { default Clipboard read(UUID uuid) throws IOException {
return read( return read(
uuid, 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)
); );
} }