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