3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Set the correct delegate to the ChunkHolder when using get or set in NULL delegate (#1830)

Dieser Commit ist enthalten in:
Jordan 2022-06-21 12:55:51 +01:00 committet von GitHub
Ursprung fe90142f1f
Commit 3f103eea9b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -744,14 +744,14 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
@Override @Override
public IChunkGet get(ChunkHolder chunk) { public IChunkGet get(ChunkHolder chunk) {
chunk.getOrCreateGet(); chunk.getOrCreateGet();
chunk.delegate = BOTH; chunk.delegate = GET;
return chunk.chunkExisting; return chunk.chunkExisting;
} }
@Override @Override
public IChunkSet set(ChunkHolder chunk) { public IChunkSet set(ChunkHolder chunk) {
chunk.getOrCreateSet(); chunk.getOrCreateSet();
chunk.delegate = BOTH; chunk.delegate = SET;
return chunk.chunkSet; return chunk.chunkSet;
} }