From 48992d2a4a2b947507dc55ddc3b8c1087a4aebfe Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 26 Mar 2018 20:35:56 +1100 Subject: [PATCH] Fixes #943 --- .../com/boydti/fawe/bukkit/v0/BukkitQueue_0.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java index 53fac357..84391eb2 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/v0/BukkitQueue_0.java @@ -95,6 +95,18 @@ public abstract class BukkitQueue_0 extends NMSMa return super.supports(capability); } + @Override + public void sendChunk(FaweChunk fc) { + if (!Fawe.isMainThread()) { + startSet(true); + try { + super.sendChunk(fc); + } finally { + endSet(true); + } + } + } + @Override public void sendChunkUpdate(FaweChunk chunk, FawePlayer... players) { if (supports(Capability.CHUNK_PACKETS)) {