mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Correctly use yIndex when regenerating plots in certain world configurations
- Fixes #3597
This commit is contained in:
parent
faadebd30e
commit
b13470ab93
@ -278,7 +278,7 @@ public class BukkitRegionManager extends RegionManager {
|
|||||||
int minY = value.getMin().getY();
|
int minY = value.getMin().getY();
|
||||||
for (int yIndex = 0; yIndex < ids.length; yIndex++) {
|
for (int yIndex = 0; yIndex < ids.length; yIndex++) {
|
||||||
int y = yIndex + minY;
|
int y = yIndex + minY;
|
||||||
BaseBlock id = ids[y];
|
BaseBlock id = ids[yIndex];
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
value.setBlock(x1, y, z1, id);
|
value.setBlock(x1, y, z1, id);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user