fixed rendering
This commit is contained in:
3
Chunk.cs
3
Chunk.cs
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user