public void ReturnChunkMesh(ChunkMesh chunkMesh) { if (chunkMesh == null) { return; } chunkMesh.ClearName(); chunkMesh.ClearMeshes(); lock (padlock) { availableChunkMeshes.Push(chunkMesh); availableChunkMeshCount++; } }