mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 13:46:45 +01:00
Use minGenHeight + 1 rather than build height in AugmentedUtils
This commit is contained in:
parent
3d0ceb4eb9
commit
ae3b86ed53
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user