Use minGenHeight + 1 rather than build height in AugmentedUtils

This commit is contained in:
dordsor21 2022-02-09 13:11:39 +00:00 committed by Jordan
parent 3d0ceb4eb9
commit ae3b86ed53

View File

@ -132,7 +132,7 @@ public class AugmentedUtils {
int worldZ = z + blockZ; int worldZ = z + blockZ;
boolean can = manager.getPlotId(worldX, 0, worldZ) == null; boolean can = manager.getPlotId(worldX, 0, worldZ) == null;
if (can) { if (can) {
for (int y = area.getMinBuildHeight(); y <= area.getMaxGenHeight(); y++) { for (int y = area.getMinGenHeight() + 1; y <= area.getMaxGenHeight(); y++) {
queue.setBlock(worldX, y, worldZ, air); queue.setBlock(worldX, y, worldZ, air);
} }
canPlace[x][z] = true; canPlace[x][z] = true;
@ -149,7 +149,7 @@ public class AugmentedUtils {
secondaryMask = primaryMask; secondaryMask = primaryMask;
for (int x = relativeBottomX; x <= relativeTopX; x++) { for (int x = relativeBottomX; x <= relativeTopX; x++) {
for (int z = relativeBottomZ; z <= relativeTopZ; z++) { for (int z = relativeBottomZ; z <= relativeTopZ; z++) {
for (int y = area.getMinBuildHeight(); y <= area.getMaxGenHeight(); y++) { for (int y = area.getMinGenHeight() + 1; y <= area.getMaxGenHeight(); y++) {
queue.setBlock(blockX + x, y, blockZ + z, air); queue.setBlock(blockX + x, y, blockZ + z, air);
} }
} }