Don't magically split to 128 height in regeneration

This commit is contained in:
dordsor21 2022-02-09 13:13:05 +00:00 committed by Jordan
parent 8e9a142be8
commit 9328695c75

View File

@ -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);
}
}
}
}
}