mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-08-29 23:49:52 +02: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