mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-08 17:07:38 +00:00
Update SingleThreadQueueExtent.java
This commit is contained in:
parent
6e1cb4cfbc
commit
110347214e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user