Update MCAFile.java

Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-10 14:19:36 +00:00
Ursprung ac6455db5d
Commit 59897dea11
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -601,6 +601,7 @@ public class MCAFile extends ExtentBatchProcessorHolder implements Trimable, ICh
end = Math.min(start + size, end);
int pair = getIndex(cx, cz);
Future<byte[]> future = null;
byte[] newBytes = relocate.get(pair);
int newBytesLength = 0;
@ -623,9 +624,13 @@ public class MCAFile extends ExtentBatchProcessorHolder implements Trimable, ICh
if (future == null) {
if (cached == null || !cached.isDeleted()) {
FastByteArrayInputStream result = getChunkCompressedBytes(getOffset(cx, cz));
newBytes = result.array;
newBytesLength = result.length;
}
}
}
} else {
newBytesLength = newBytes.length;
}
if (future != null) {
newBytes = future.get();