mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Merge remote-tracking branch 'origin/1.15' into 1.15
This commit is contained in:
@ -156,7 +156,12 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
|
||||
}
|
||||
|
||||
if (Fawe.isMainThread()) {
|
||||
return (V) chunk.call();
|
||||
V result = (V)chunk.call();
|
||||
if (result == null){
|
||||
return (V) (Future) Futures.immediateFuture(null);
|
||||
}else{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
return (V) Fawe.get().getQueueHandler().submit(chunk);
|
||||
|
@ -108,7 +108,7 @@ public class MaskingExtent extends AbstractDelegateExtent implements IBatchProce
|
||||
@Override
|
||||
public void applyBlock(FilterBlock block) {
|
||||
int ordinal = block.getOrdinal();
|
||||
if (ordinal != 0 && !mask.test(getExtent(), block)) {
|
||||
if (!mask.test(getExtent(), block)) {
|
||||
block.setOrdinal(0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user