Merge remote-tracking branch 'origin/1.15' into 1.15

This commit is contained in:
MattBDev
2020-04-01 13:09:15 -04:00
3 changed files with 10 additions and 5 deletions

View File

@ -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);