- syncing docking ports
- linkedsubmarine saving fixes, path can be changed and sub reloaded in editinghub - lightsources don't constantly recheck convex hulls of another sub if subs are docked - position update networkevents arent sent for subs that are docked to the main sub
This commit is contained in:
@@ -395,6 +395,9 @@ namespace Barotrauma.Networking
|
||||
{
|
||||
foreach (Submarine sub in Submarine.Loaded)
|
||||
{
|
||||
//no need to send position updates for submarines that are docked to mainsub
|
||||
if (sub != Submarine.MainSub && sub.DockedTo.Contains(Submarine.MainSub)) continue;
|
||||
|
||||
new NetworkEvent(sub.ID, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user