From c86dfe45df049d5df7285df68ecfa03a2117af51 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Sun, 23 Apr 2023 22:15:37 +0200 Subject: [PATCH] Ensure regen step not running on the main thread (#2185) --- .../bukkit/adapter/Regenerator.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/Regenerator.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/Regenerator.java index 8f3b4d118..c95fbc580 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/Regenerator.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/adapter/Regenerator.java @@ -253,10 +253,13 @@ public abstract class Regenerator { + for (long xz : coords) { + chunkStatus.processChunkSave(xz, worldlimits.get(radius).get(xz)); + } + }).get(); // wait until finished this step } }