Updating wire sections if the wires are moved during loading
This commit is contained in:
@@ -278,7 +278,7 @@ namespace Barotrauma.Items.Components
|
||||
return true;
|
||||
}
|
||||
|
||||
private void UpdateSections()
|
||||
public void UpdateSections()
|
||||
{
|
||||
sections.Clear();
|
||||
|
||||
|
||||
@@ -1085,6 +1085,7 @@ namespace Barotrauma
|
||||
{
|
||||
wire.Nodes[i] -= center;
|
||||
}
|
||||
wire.UpdateSections();
|
||||
}
|
||||
|
||||
for (int i = 0; i < MapEntity.mapEntityList.Count; i++)
|
||||
|
||||
Reference in New Issue
Block a user