mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 14:56:28 +00:00
Merge remote-tracking branch 'origin/dev/fabric-compat' into dev/fabric-compat
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user