3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

fix: set size of MappedByteBuffer accordingly (#1608)

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2022-02-13 13:57:19 +01:00 committet von GitHub
Ursprung de4f73997e
Commit f657a80dc6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -172,7 +172,7 @@ public class DiskOptimizedClipboard extends LinearClipboard implements Closeable
if (this.fileChannel == null) {
this.fileChannel = braf.getChannel();
this.fileChannel.lock();
this.byteBuffer = fileChannel.map(FileChannel.MapMode.READ_WRITE, 0, file.length());
this.byteBuffer = fileChannel.map(FileChannel.MapMode.READ_WRITE, 0, braf.length());
}
}