diff --git a/src/main/java/com/hbm/world/gen/nbt/NBTStructure.java b/src/main/java/com/hbm/world/gen/nbt/NBTStructure.java index 9dd37fb10..48e559499 100644 --- a/src/main/java/com/hbm/world/gen/nbt/NBTStructure.java +++ b/src/main/java/com/hbm/world/gen/nbt/NBTStructure.java @@ -801,7 +801,9 @@ public class NBTStructure { // now we're in the world, update minY/maxY if(!piece.conformToTerrain && !heightUpdated) { - int y = MathHelper.clamp_int(getAverageHeight(world, box) + piece.heightOffset, minHeight, maxHeight); + int averageHeight = getAverageHeight(world, box) + piece.heightOffset; + boolean isFlatWorld = world.getWorldInfo().getTerrainType() == net.minecraft.world.WorldType.FLAT; + int y = isFlatWorld ? averageHeight : MathHelper.clamp_int(averageHeight, minHeight, maxHeight); if(!piece.alignToTerrain) { parent.offsetYHeight(y);