Remove 700 usages of Component.Owner (#21100)

This commit is contained in:
DrSmugleaf
2023-10-19 12:34:31 -07:00
committed by GitHub
parent 5825ffb95c
commit f560f88eb5
261 changed files with 2291 additions and 2036 deletions

View File

@@ -1,9 +1,6 @@
using Content.Server.Shuttles.Components;
using Content.Shared.Shuttles.Components;
using Content.Shared.Shuttles.Events;
using Robust.Shared.Physics.Components;
using Robust.Shared.Players;
using Robust.Shared.Utility;
namespace Content.Server.Shuttles.Systems;
@@ -35,7 +32,7 @@ public sealed partial class DockingSystem
if (dockable == null)
continue;
TryDock(dockUid, dock, dockable.Owner, dockable);
TryDock(dockUid, dock, dockable.Value);
}
// Work out recent docks that have gone past their designated threshold.
@@ -114,7 +111,8 @@ public sealed partial class DockingSystem
var player = args.Session.AttachedEntity;
// TODO: Validation
if (player == null || !TryComp<AutoDockComponent>(dork, out var comp)) return;
if (player == null || !TryComp<AutoDockComponent>(dork, out var comp))
return;
comp.Requesters.Remove(player.Value);