Exemple #1
0
    private static void SetChunkLightDirty(Map map, Vector3i chunkPos)
    {
        Chunk chunkData = map.GetChunk(chunkPos);

        if (chunkData == null)
        {
            return;
        }
        ChunkRenderer chunk = chunkData.GetChunkRenderer();

        if (chunk == null)
        {
            return;
        }
        chunk.SetLightDirty();
    }