diff --git a/Core/src/main/java/com/plotsquared/core/util/WEManager.java b/Core/src/main/java/com/plotsquared/core/util/WEManager.java index 9ef38e1f4..c9b69a887 100644 --- a/Core/src/main/java/com/plotsquared/core/util/WEManager.java +++ b/Core/src/main/java/com/plotsquared/core/util/WEManager.java @@ -25,7 +25,6 @@ */ package com.plotsquared.core.util; -import com.fastasyncworldedit.core.regions.RegionWrapper; import com.plotsquared.core.PlotSquared; import com.plotsquared.core.configuration.Settings; import com.plotsquared.core.location.Location; @@ -45,6 +44,9 @@ import java.util.UUID; public class WEManager { + private static final BlockVector3 MIN = BlockVector3.at(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE); + private static final BlockVector3 MAX = BlockVector3.at(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); + public static boolean maskContains(Set mask, int x, int y, int z) { for (CuboidRegion region : mask) { if (RegionUtil.contains(region, x, y, z)) { @@ -92,7 +94,7 @@ public class WEManager { Location location = player.getLocation(); String world = location.getWorldName(); if (!PlotSquared.get().getPlotAreaManager().hasPlotArea(world)) { - regions.add(RegionWrapper.GLOBAL()); + regions.add(new CuboidRegion(MIN, MAX)); return regions; } PlotArea area = player.getApplicablePlotArea();