From 7ba42583a94da5f1d61dbdc0a98e2e7d910b5ce2 Mon Sep 17 00:00:00 2001 From: Dummy0815 Date: Tue, 3 Jan 2017 19:42:38 +0100 Subject: [PATCH] Update MyInventory_ModAPI.cs --- Sources/Sandbox.Game/ModAPI/MyInventory_ModAPI.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/Sandbox.Game/ModAPI/MyInventory_ModAPI.cs b/Sources/Sandbox.Game/ModAPI/MyInventory_ModAPI.cs index b6aa232bd..8f9700eb1 100644 --- a/Sources/Sandbox.Game/ModAPI/MyInventory_ModAPI.cs +++ b/Sources/Sandbox.Game/ModAPI/MyInventory_ModAPI.cs @@ -100,14 +100,12 @@ private bool TransferItemsTo(IMyInventory dst, int sourceItemIndex, int? targetI return false; } - List reachableVertices = new List(); - private bool IsConnected(MyInventory dstInventory) { var srcConveyor = (this.Owner as IMyConveyorEndpointBlock); if (srcConveyor != null) { - reachableVertices.Clear(); + var reachableVertices = new List(); MyGridConveyorSystem.FindReachable(srcConveyor.ConveyorEndpoint, reachableVertices, (vertex) => vertex.CubeBlock != null); foreach (var vertex in reachableVertices) {