mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Update DiskOptimizedClipboard.java
This commit is contained in:
parent
1e16095cba
commit
b224457464
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user