fixed rendering

This commit is contained in:
2025-09-09 19:43:27 +02:00
parent ce456b6b26
commit 50f9d4c0c8
5 changed files with 66 additions and 21 deletions

View File

@@ -25,11 +25,12 @@
public void SetBlock(int x, int y, int z, Blocks block)
{
Console.WriteLine(x.ToString() + ", " + y.ToString());
int i = GetBlockIndex(x, y, z);
if (i == -1) return;
_blocks[i] = block;
UpdateChunkMesh();
Renderer.MarkBuffersDirty();
}
public void SetBlockIndex(int i, Blocks block)