Esempio n. 1
0
 public void Disconnect(string title, string reason)
 {
     SetNewScreen(new ErrorScreen(this, title, reason));
     Map.Reset();
     Map.mapData = null;
     GC.Collect();
 }
Esempio 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();
        }