From e53ea2377cc8258255518f13111d824067b8186a Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Tue, 11 Feb 2020 16:52:16 -0500 Subject: [PATCH] Fixed #2671 Sort of fixed. I added an if statement to log and return if a certain condition is met. It is unclear if there will be more generation issues as a result. --- .../plotsquared/plot/generator/HybridPlotWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java index 6b44487ce..e3eb91a59 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/generator/HybridPlotWorld.java @@ -314,6 +314,10 @@ public class HybridPlotWorld extends ClassicPlotWorld { } int pair = MathMan.pair(x, z); BaseBlock[] existing = this.G_SCH.computeIfAbsent(pair, k -> new BaseBlock[height]); + if (y >= height) { + PlotSquared.log("Error adding overlay block. `y > height` "); + return; + } existing[y] = id; } }