public static void DrawBlock(Block block, int x, int y, int z, PlayerCamera camera) { string textureName = TextureMap.GetTextureNameFromID(block.ID); if (textureName == "") { return; } Texture texture = TextureMap.GetTexture(textureName); Cube.Texture = texture; Cube.Position = GridLatch.WTMGetBlock(x, y, z); Cube.Draw(camera); }