From 259fe94f830786d6454d9affcf3eaf1b380457ae Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 8 Apr 2019 01:43:38 +1000 Subject: [PATCH] Potential fix to skip chunks being kept loaded --- .../intellectualsites/plotsquared/bukkit/BukkitMain.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java index 0009ba553..0ef174a04 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java @@ -252,9 +252,10 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain if (!result) { continue outer; } - } while (index < chunks.length - && System.currentTimeMillis() - start < 5); - return; + if (System.currentTimeMillis() - start > 5) { + return; + } + } while (index < chunks.length); } } }