From cf27decdb458a324792ff2639818b38cf4141946 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 23 May 2018 16:32:08 +1000 Subject: [PATCH] Fix P2 maxY --- .../boydti/fawe/regions/general/plot/PlotSquaredFeature.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ca1360d4..fa80821e 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 @@ -118,7 +118,7 @@ public class PlotSquaredFeature extends FaweMaskManager { } PlotArea area = pp.getApplicablePlotArea(); int min = area != null ? area.MIN_BUILD_HEIGHT : 0; - int max = area != null ? area.MAX_BUILD_HEIGHT : 255; + int max = area != null ? Math.min(255, 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));