Realistically only need the "highest" y level of adding overlay block errors

This commit is contained in:
dordsor21 2022-06-27 17:41:47 +01:00
parent e90fd231d9
commit 91017acce4
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -500,7 +500,7 @@ 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) {
if (y != lastOverlayHeightError) {
if (y > lastOverlayHeightError) {
lastOverlayHeightError = y;
LOGGER.error(String.format("Error adding overlay block. `y > height`. y=%s, height=%s", y, height));
}