Updating wire sections if the wires are moved during loading

This commit is contained in:
Regalis
2016-11-09 16:23:48 +02:00
parent e3cd19b781
commit d017817878
2 changed files with 2 additions and 1 deletions

View File

@@ -278,7 +278,7 @@ namespace Barotrauma.Items.Components
return true;
}
private void UpdateSections()
public void UpdateSections()
{
sections.Clear();

View File

@@ -1085,6 +1085,7 @@ namespace Barotrauma
{
wire.Nodes[i] -= center;
}
wire.UpdateSections();
}
for (int i = 0; i < MapEntity.mapEntityList.Count; i++)