This commit is contained in:
dordsor21 2021-09-22 22:22:39 +01:00
parent a5795461f2
commit 6c56fa29aa
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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);
}