mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Set the correct delegate to the ChunkHolder when using get or set in NULL delegate (#1830)
This commit is contained in:
parent
fe90142f1f
commit
3f103eea9b
@ -744,14 +744,14 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
||||
@Override
|
||||
public IChunkGet get(ChunkHolder chunk) {
|
||||
chunk.getOrCreateGet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.delegate = GET;
|
||||
return chunk.chunkExisting;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IChunkSet set(ChunkHolder chunk) {
|
||||
chunk.getOrCreateSet();
|
||||
chunk.delegate = BOTH;
|
||||
chunk.delegate = SET;
|
||||
return chunk.chunkSet;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user