Esempio n. 1
0
 private void TrySetChunk(CubeChunk chunk)
 {
     if (!chunk.IsEmpty() ||          // optimized, if we try to set an empty chunk it will not really write it
         Handler.ChunkExistsAt(chunk.Coordinates))                    // if the chunk already exists, set it anyway because it would not be overwrote
     {
         Handler.SetChunk(chunk);
     }
 }