Example #1
0
        public void UpdateBlock(int x, int y, int z, BlockID block)
        {
            int oldHeight = Lighting.GetLightHeight(x, z) + 1;

            World.SetBlock(x, y, z, block);
            int newHeight = Lighting.GetLightHeight(x, z) + 1;

            MapRenderer.RedrawBlock(x, y, z, block, oldHeight, newHeight);
        }