(bce1100e8) ClientCode.projitems update

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:45:45 +02:00
parent ff4ecd15b3
commit 556d86ed4f
8 changed files with 51 additions and 34 deletions
@@ -185,6 +185,9 @@ namespace Barotrauma.Items.Components
if (nodes.Count > 0 && nodes[0] == nodePos) break;
if (nodes.Count > 1 && nodes[nodes.Count - 1] == nodePos) break;
if (nodes.Count > 0 && nodes[0] == nodePos) break;
if (nodes.Count > 1 && nodes[nodes.Count - 1] == nodePos) break;
//make sure we place the node at the correct end of the wire (the end that's closest to the new node pos)
int newNodeIndex = 0;
if (nodes.Count > 1)