Exemplo n.º 1
0
 public void Disconnect(string title, string reason)
 {
     SetNewScreen(new ErrorScreen(this, title, reason));
     Map.Reset();
     Map.mapData = null;
     GC.Collect();
 }
Exemplo n.º 2
0
        public void Disconnect(string title, string reason)
        {
            SetNewScreen(new ErrorScreen(this, title, reason));
            Map.Reset();
            Map.mapData = null;
            Drawer2D.InitColours();

            for (int tile = BlockInfo.CpeBlocksCount; tile < BlockInfo.BlocksCount; tile++)
            {
                BlockInfo.ResetBlockInfo((byte)tile, false);
            }
            BlockInfo.SetupCullingCache();
            BlockInfo.InitLightOffsets();
            GC.Collect();
        }