From b22445746442e160ea0e2dd7ec53962348b370a1 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 4 Nov 2019 19:29:21 +0000 Subject: [PATCH] Update DiskOptimizedClipboard.java --- .../boydti/fawe/object/clipboard/DiskOptimizedClipboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0f40e10b7..f40657289 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 @@ -97,9 +97,9 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable e.printStackTrace(); } this.braf = new RandomAccessFile(file, "rw"); - long volume = (long) getArea() * 2L + (long) HEADER_SIZE; + long fileLength = (long) getVolume() * 2L + (long) HEADER_SIZE; braf.setLength(0); - braf.setLength(volume); + braf.setLength(fileLength); init(); // write getLength() etc byteBuffer.putChar(2, (char) getWidth());