Correctly use yIndex when regenerating plots in certain world configurations (#3601)

- Fixes #3597
This commit is contained in:
Jordan 2022-05-15 10:42:19 +01:00 committed by GitHub
parent d5f8a0842b
commit 60a0129fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,7 +278,7 @@ public class BukkitRegionManager extends RegionManager {
int minY = value.getMin().getY();
for (int yIndex = 0; yIndex < ids.length; yIndex++) {
int y = yIndex + minY;
BaseBlock id = ids[y];
BaseBlock id = ids[yIndex];
if (id != null) {
value.setBlock(x1, y, z1, id);
} else {