From 9328695c756fab451852b31b935bdc4df6de6a60 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 9 Feb 2022 13:13:05 +0000 Subject: [PATCH] Don't magically split to 128 height in regeneration --- .../com/plotsquared/bukkit/util/BukkitRegionManager.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 0855de4bc..74b5c1372 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/BukkitRegionManager.java @@ -276,7 +276,7 @@ public class BukkitRegionManager extends RegionManager { BaseBlock[] ids = map.allBlocks.get(plotLoc); if (ids != null) { int minY = value.getMin().getY(); - for (int yIndex = 0; yIndex < Math.min(128 - minY, ids.length); yIndex++) { + for (int yIndex = 0; yIndex < ids.length; yIndex++) { int y = yIndex + minY; BaseBlock id = ids[y]; if (id != null) { @@ -285,13 +285,6 @@ public class BukkitRegionManager extends RegionManager { value.setBlock(x1, y, z1, BlockTypes.AIR.getDefaultState()); } } - for (int yIndex = Math.min(128 - minY, ids.length); yIndex < ids.length; yIndex++) { - int y = yIndex + minY; - BaseBlock id = ids[y]; - if (id != null) { - value.setBlock(x1, y, z1, id); - } - } } } }