Subs that aren't docked to the main sub aren't saved
This commit is contained in:
@@ -225,8 +225,10 @@ namespace Barotrauma
|
||||
}
|
||||
else
|
||||
{
|
||||
saveElement = new XElement("LinkedSubmarine");
|
||||
if (!sub.DockedTo.Contains(Submarine.MainSub)) return null;
|
||||
|
||||
saveElement = new XElement("LinkedSubmarine");
|
||||
|
||||
sub.SaveToXElement(saveElement);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user