feat(world-gen): add MinCaveY ceiling to CaveCarver

This commit is contained in:
MDietermann
2026-06-01 18:42:29 +02:00
parent 262933238c
commit 89ac70f1ab
2 changed files with 18 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ public sealed class CaveCarver
{
int worldY = baseY + y;
if (worldY <= 0) continue;
if (worldY > this._cfg.MinCaveY) continue;
ushort id = chunk[x, y, z];
if (id == this._blocks.Air.Id) continue;
@@ -160,6 +161,7 @@ public sealed class CaveCarver
{
int worldY = baseY + y;
if (worldY <= 0) continue;
if (worldY > this._cfg.MinCaveY) continue;
float vx = baseX + x + 0.5f;
float vy = baseY + y + 0.5f;