mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
i FUCKING HATE intellishit fuck this stupidslopware program and fuck jetbrains they can give me some brain
This commit is contained in:
parent
1cb8ca18cf
commit
84f1434131
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user