mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
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.
This commit is contained in:
parent
f79f2ac29e
commit
e53ea2377c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user