From 6c56fa29aa3d1dbd24c40f3858a5d96bf93538af Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 22 Sep 2021 22:22:39 +0100 Subject: [PATCH] Fix #1317 --- .../core/extent/clipboard/DiskOptimizedClipboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java index 70b16e473..23db8f75a 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/DiskOptimizedClipboard.java @@ -136,7 +136,7 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable private static BlockVector3 readSize(File file) { try (DataInputStream is = new DataInputStream(new FileInputStream(file))) { - byte version = is.readByte(); + int version = is.readChar(); if (version > VERSION) { throw new UnsupportedOperationException("Unsupported clipboard-on-disk version: " + version); }