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;