From b13470ab93c97eee0c2c5409f29ade9a07bddcb9 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 8 May 2022 16:55:10 +0100 Subject: [PATCH] Correctly use yIndex when regenerating plots in certain world configurations - Fixes #3597 --- .../java/com/plotsquared/bukkit/util/BukkitRegionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java index 74b5c1372..76725c4df 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java @@ -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 {