mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
fix height again
This commit is contained in:
parent
5287323865
commit
bbe53cbca3
@ -148,9 +148,9 @@ public class FabricChunkGeneratorWrapper extends ChunkGenerator implements Gener
|
||||
int cx = FastMath.floorMod(x, 16);
|
||||
int cz = FastMath.floorMod(z, 16);
|
||||
|
||||
int height = world.getWorld().getMaxHeight() - 1;
|
||||
int height = world.getWorld().getMaxHeight();
|
||||
|
||||
while(height >= 0 && sampler.sample(cx, height, cz) < 0) height--;
|
||||
while(height >= 0 && sampler.sample(cx, height-1, cz) < 0) height--;
|
||||
|
||||
return height;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user