private void OnChunkGenerateFinish(object[] param)
        {
            Chunk chunk = param[0] as Chunk;

            chunk.RefreshEntity();
        }
Beispiel #2
0
        public LightShrinkNode GetShrinkNode(int index, int prevLightLevel, int lightLevel, Chunk chunk)
        {
            LightShrinkNode node;

            lock (_lockObj)
            {
                if (shrinkNodes.Count > 0)
                {
                    node                = shrinkNodes.Dequeue();
                    node.index          = index;
                    node.prevLightLevel = prevLightLevel;
                    node.lightLevel     = lightLevel;
                    node.chunk          = chunk;
                }
                else
                {
                    node = new LightShrinkNode(index, prevLightLevel, lightLevel, chunk);
                }
            }
            return(node);
        }
Beispiel #3
0
        public override void ClientDo(ServerConnectionWorker connectionWork)
        {
            Chunk chunk = World.world.GetChunk(pos.x, pos.y, pos.z);

            chunk.UpdateClientChangedBlock(changedBlock, true);
        }