Ejemplo n.º 1
0
        private void OnChunkGenerateFinish(object[] param)
        {
            Chunk chunk = param[0] as Chunk;

            chunk.RefreshEntity();
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public override void ClientDo(ServerConnectionWorker connectionWork)
        {
            Chunk chunk = World.world.GetChunk(pos.x, pos.y, pos.z);

            chunk.UpdateClientChangedBlock(changedBlock, true);
        }