From 3df080abe41a6e13050e6f8c02689424a29e177a Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 5 Feb 2021 13:21:15 +0100 Subject: [PATCH] Add note if clipboard >= Integer.MAX_VALUE --- .../boydti/fawe/object/clipboard/DiskOptimizedClipboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/DiskOptimizedClipboard.java b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/DiskOptimizedClipboard.java index 0a27689de..38914a944 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/DiskOptimizedClipboard.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/clipboard/DiskOptimizedClipboard.java @@ -78,7 +78,7 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable public DiskOptimizedClipboard(BlockVector3 dimensions, File file) { super(dimensions); if (HEADER_SIZE + ((long) getVolume() << 1) >= Integer.MAX_VALUE) { - throw new IllegalArgumentException("Dimensions too large for this clipboard format"); + throw new IllegalArgumentException("Dimensions too large for this clipboard format. Use //lazycopy for large selections."); } else if (HEADER_SIZE + ((long) getVolume() << 1) + (long) ((getHeight() >> 2) + 1) * ((getLength() >> 2) + 1) * ((getWidth() >> 2) + 1) >= Integer.MAX_VALUE) { log.error("Dimensions are too large for biomes to be stored in a DiskOptimizedClipboard"); canHaveBiomes = false;