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.
This commit is contained in:
MattBDev 2020-02-11 16:52:16 -05:00
parent f79f2ac29e
commit e53ea2377c

View File

@ -314,6 +314,10 @@ public class HybridPlotWorld extends ClassicPlotWorld {
} }
int pair = MathMan.pair(x, z); int pair = MathMan.pair(x, z);
BaseBlock[] existing = this.G_SCH.computeIfAbsent(pair, k -> new BaseBlock[height]); 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; existing[y] = id;
} }
} }