mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Don't stop edits for old clipboards, attempt to load them anyway (for now)
This commit is contained in:
parent
8593c2df9f
commit
bfd9e5b347
@ -150,9 +150,15 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable
|
||||
private static BlockVector3 readSize(File file) {
|
||||
try (DataInputStream is = new DataInputStream(new FileInputStream(file))) {
|
||||
int version = is.readChar();
|
||||
if (version > VERSION) {
|
||||
throw new UnsupportedOperationException("Unsupported clipboard-on-disk version: " + version);
|
||||
int x;
|
||||
if (version != 1) {
|
||||
x = version;
|
||||
} else {
|
||||
x = is.readChar();
|
||||
}
|
||||
// if (version > VERSION) {
|
||||
// throw new UnsupportedOperationException("Unsupported clipboard-on-disk version: " + version);
|
||||
// }
|
||||
return BlockVector3.at(is.readChar(), is.readChar(), is.readChar());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
Loading…
Reference in New Issue
Block a user