fixed barrier border for terrain generator
This commit is contained in:
parent
0715771bfc
commit
9069ead9e9
@ -67,7 +67,7 @@ public class SquarePlateTerrainGenerator extends PlateTerrainGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(generateBorders) {
|
if(generateBorders) {
|
||||||
Runnable generateBorder = () -> unit.modifier().fill(bottom, bottom.add(1, 0, 1), Block.BARRIER); // TODO DimensionType.OVERWORLD.getMaxY() is now hardcoded 0, might break behaviour
|
Runnable generateBorder = () -> unit.modifier().fill(bottom, bottom.add(1, DimensionType.VANILLA_MAX_Y, 1), Block.BARRIER);
|
||||||
|
|
||||||
if(bottom.z() <= length+1 && bottom.z() >= -1 && bottom.x() >= -1 && bottom.x() <= width+1) {
|
if(bottom.z() <= length+1 && bottom.z() >= -1 && bottom.x() >= -1 && bottom.x() <= width+1) {
|
||||||
if(bottom.x() == -1 || bottom.x() == width+1) {
|
if(bottom.x() == -1 || bottom.x() == width+1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user