From b2b8598b5b2c6ef63e05cdd93bbf3c030c06c8ce Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 15 Sep 2021 13:19:25 +0100 Subject: [PATCH] Fix #3246 --- .../java/com/plotsquared/bukkit/util/BukkitRegionManager.java | 2 +- Core/src/main/java/com/plotsquared/core/util/RegionManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java index 4bed52398..c9e9d6d2b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java @@ -176,7 +176,7 @@ public class BukkitRegionManager extends RegionManager { final boolean ignoreAugment, final @Nullable Runnable whenDone ) { - final BukkitWorld world = new BukkitWorld((World) pos1.getWorld()); + final BukkitWorld world = (BukkitWorld) worldUtil.getWeWorld(pos1.getWorldName()); final int p1x = pos1.getX(); final int p1z = pos1.getZ(); diff --git a/Core/src/main/java/com/plotsquared/core/util/RegionManager.java b/Core/src/main/java/com/plotsquared/core/util/RegionManager.java index 4a5d3614b..39cda3df5 100644 --- a/Core/src/main/java/com/plotsquared/core/util/RegionManager.java +++ b/Core/src/main/java/com/plotsquared/core/util/RegionManager.java @@ -61,7 +61,7 @@ public abstract class RegionManager { private static final Logger LOGGER = LogManager.getLogger("PlotSquared/" + RegionManager.class.getSimpleName()); public static RegionManager manager = null; - private final WorldUtil worldUtil; + protected final WorldUtil worldUtil; private final GlobalBlockQueue blockQueue; private final ProgressSubscriberFactory subscriberFactory;