Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -6,16 +6,12 @@ using Content.Shared.Movement.Systems;
|
||||
using Content.Shared.Pulling.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Configuration;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Map.Components;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Controllers;
|
||||
using Robust.Shared.Physics.Dynamics;
|
||||
using Robust.Shared.Physics.Systems;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
|
||||
namespace Content.Shared.Friction
|
||||
{
|
||||
@@ -68,7 +64,7 @@ namespace Content.Shared.Friction
|
||||
// Only apply friction when it's not a mob (or the mob doesn't have control)
|
||||
if (prediction && !body.Predict ||
|
||||
body.BodyStatus == BodyStatus.InAir ||
|
||||
_mover.UseMobMovement(body.Owner))
|
||||
_mover.UseMobMovement(uid))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -78,7 +74,7 @@ namespace Content.Shared.Friction
|
||||
|
||||
if (!xformQuery.TryGetComponent(uid, out var xform))
|
||||
{
|
||||
Log.Error($"Unable to get transform for {ToPrettyString(body.Owner)} in tilefrictioncontroller");
|
||||
Log.Error($"Unable to get transform for {ToPrettyString(uid)} in tilefrictioncontroller");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user