i FUCKING HATE intellishit fuck this stupidslopware program and fuck jetbrains they can give me some brain

This commit is contained in:
Lazzzycat 2025-11-16 16:26:29 +01:00
parent 1cb8ca18cf
commit 84f1434131

View File

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