From 60a0129fe9ff04c104ff4553f99c5619d42a56c7 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 15 May 2022 10:42:19 +0100 Subject: [PATCH] Correctly use yIndex when regenerating plots in certain world configurations (#3601) - 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 {