From 0397f8fcfadf7ff72f16baf0e635bc9f95271d91 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 17 Jan 2021 11:34:41 -0800 Subject: [PATCH] Restore interrupted state --- .../java/world/bentobox/greenhouses/world/AsyncWorldCache.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/world/bentobox/greenhouses/world/AsyncWorldCache.java b/src/main/java/world/bentobox/greenhouses/world/AsyncWorldCache.java index 0ca37f8..f13f059 100644 --- a/src/main/java/world/bentobox/greenhouses/world/AsyncWorldCache.java +++ b/src/main/java/world/bentobox/greenhouses/world/AsyncWorldCache.java @@ -104,6 +104,8 @@ public class AsyncWorldCache { return getSnap(x,z).getBlockType(xx, y, zz); } catch (InterruptedException | ExecutionException e) { Greenhouses.getInstance().logError("Chunk could not be obtained async! " + e); + // Restore interrupted state... + Thread.currentThread().interrupt(); return Material.AIR; } }