From 0250c692000d22bd3769c5cdbd8006668193d5fa Mon Sep 17 00:00:00 2001 From: LordTylus Date: Sun, 14 Apr 2019 20:03:37 +0200 Subject: [PATCH] Update Commands.cs Debug-Code removed and proper logging set to figure out when a grid goes missing why it does so --- Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands.cs b/Commands.cs index 9ca5aad..f8f764d 100644 --- a/Commands.cs +++ b/Commands.cs @@ -80,8 +80,6 @@ private void fixShip(string gridName, long playerId, long executingPlayerId) { IMyCubeGrid grid = groupNodes.NodeData; - Log.Warn("Test " + grid.CustomName); - List tBlockList = new List(); var gts = MyAPIGateway.TerminalActionsHelper.GetTerminalSystemForGrid(grid); @@ -134,6 +132,8 @@ private void fixShip(string gridName, long playerId, long executingPlayerId) { var entity = grid as IMyEntity; + Log.Warn("Grid " + grid.CustomName+" was removed for later paste"); + MyAPIGateway.Utilities.InvokeOnGameThread(() => entity.Delete()); entity.Close(); continue;