Fixed docking ports leaking if multiple vessels have docked to the main sub, cargo is always spawned in the main sub
This commit is contained in:
@@ -54,7 +54,7 @@ namespace Barotrauma
|
||||
return;
|
||||
}
|
||||
|
||||
WayPoint cargoSpawnPos = WayPoint.GetRandom(SpawnType.Cargo);
|
||||
WayPoint cargoSpawnPos = WayPoint.GetRandom(SpawnType.Cargo, null, Submarine.MainSub);
|
||||
if (cargoSpawnPos==null)
|
||||
{
|
||||
DebugConsole.ThrowError("Couldn't spawn items for cargo mission, cargo spawnpoint not found");
|
||||
|
||||
Reference in New Issue
Block a user