synchronise filterBlocks - we shouldn't be able to execute the call method whilst a filter is ongoing and vice versa

This commit is contained in:
dordsor21 2021-09-14 14:32:42 +01:00
parent 09d2996451
commit dad991e7aa
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -886,7 +886,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
}
@Override
public void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full) {
public synchronized void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full) {
final IChunkGet get = getOrCreateGet();
final IChunkSet set = getOrCreateSet();
set.setFastMode(fastmode);