From 110347214ef39f892110d61768ebdc9f1d99c6f4 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Tue, 31 Mar 2020 20:29:03 -0400 Subject: [PATCH] Update SingleThreadQueueExtent.java --- .../beta/implementation/queue/SingleThreadQueueExtent.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/queue/SingleThreadQueueExtent.java b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/queue/SingleThreadQueueExtent.java index 1f3ed59de..62a199e6a 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/queue/SingleThreadQueueExtent.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/queue/SingleThreadQueueExtent.java @@ -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);