This commit is contained in:
dordsor21 2022-03-08 18:14:19 +00:00
parent b46f486680
commit 5c7bfb988c
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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<CuboidRegion> 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();