public bool SetSkyLight(int x, int y, int z, int light) { IChunk chunk = _chunkCache.GetChunk(new ChunkCoord(x >> 4, z >> 4)); bool r = chunk.SetSkyLight(x & 15, y, z & 15, light); chunk.IsModified = true; RelightCheck(); return(r); }
private void SetUpperVoxels(IChunk chunk) { for (int x = 0; x < Chunk.Width; x++) { for (int z = 0; z < Chunk.Depth; z++) { for (int y = chunk.MaxHeight + 1; y < Chunk.Height; y++) { chunk.SetSkyLight(new Coordinates3D(x, y, z), 15); } } } }
private void SetUpperVoxels(IChunk chunk) { for (int x = 0; x < Chunk.Width; x++) for (int z = 0; z < Chunk.Depth; z++) for (int y = chunk.MaxHeight + 1; y < Chunk.Height; y++) chunk.SetSkyLight(new Coordinates3D(x, y, z), 15); }