mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-19 10:25:00 +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()) {
|
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);
|
return (V) Fawe.get().getQueueHandler().submit(chunk);
|
||||||
|
Loading…
Reference in New Issue
Block a user