From 195e043f2c6cdf4212164d5e114a5565d7bb97f0 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 10 Aug 2017 01:03:58 +1000 Subject: [PATCH] Fix p2 region restrictions min/max y --- .../fawe/regions/general/plot/PlotSquaredFeature.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/regions/general/plot/PlotSquaredFeature.java b/core/src/main/java/com/boydti/fawe/regions/general/plot/PlotSquaredFeature.java index 6c177e3c..aee0f404 100644 --- a/core/src/main/java/com/boydti/fawe/regions/general/plot/PlotSquaredFeature.java +++ b/core/src/main/java/com/boydti/fawe/regions/general/plot/PlotSquaredFeature.java @@ -105,13 +105,13 @@ public class PlotSquaredFeature extends FaweMaskManager { if (regions == null || regions.size() == 0) { return null; } - final HashSet faweRegions = new HashSet<>(); - for (final RegionWrapper current : regions) { - faweRegions.add(new com.boydti.fawe.object.RegionWrapper(current.minX, current.maxX, current.minZ, current.maxZ)); - } PlotArea area = pp.getApplicablePlotArea(); int min = area != null ? area.MIN_BUILD_HEIGHT : 0; int max = area != null ? area.MAX_BUILD_HEIGHT : 255; + final HashSet faweRegions = new HashSet<>(); + for (final RegionWrapper current : regions) { + faweRegions.add(new com.boydti.fawe.object.RegionWrapper(current.minX, current.maxX, min, max, current.minZ, current.maxZ)); + } final RegionWrapper region = regions.iterator().next(); final BlockVector pos1 = new BlockVector(region.minX, min, region.minZ); final BlockVector pos2 = new BlockVector(region.maxX, max, region.maxZ);