From: Milon Date: Sun, 16 Feb 2025 02:06:23 +0000 (+0100) Subject: remove usages of obsolete EntityUid method variants (#35106) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e97d6870cc6c10805d562f4a38007b4d9a694acc;p=space-station-14.git remove usages of obsolete EntityUid method variants (#35106) eughhhhh --- diff --git a/Content.Server/Beam/BeamSystem.cs b/Content.Server/Beam/BeamSystem.cs index ad67f983c2..bf120bf8c4 100644 --- a/Content.Server/Beam/BeamSystem.cs +++ b/Content.Server/Beam/BeamSystem.cs @@ -96,7 +96,7 @@ public sealed class BeamSystem : SharedBeamSystem _physics.SetBodyType(ent, BodyType.Dynamic, manager: manager, body: physics); _physics.SetCanCollide(ent, true, manager: manager, body: physics); - _broadphase.RegenerateContacts(ent, physics, manager); + _broadphase.RegenerateContacts((ent, physics, manager)); var distanceLength = distanceCorrection.Length(); diff --git a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs index 119b1a3d36..b2f26309cf 100644 --- a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs +++ b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs @@ -36,7 +36,7 @@ public sealed partial class TriggerSystem // Re-check for contacts as we cleared them. else if (TryComp(uid, out var body)) { - _broadphase.RegenerateContacts(uid, body); + _broadphase.RegenerateContacts((uid, body)); } } diff --git a/Content.Server/Fluids/EntitySystems/SmokeSystem.cs b/Content.Server/Fluids/EntitySystems/SmokeSystem.cs index 42f3a07d26..bdbc265164 100644 --- a/Content.Server/Fluids/EntitySystems/SmokeSystem.cs +++ b/Content.Server/Fluids/EntitySystems/SmokeSystem.cs @@ -228,7 +228,7 @@ public sealed class SmokeSystem : EntitySystem var xform = Transform(uid); _physics.SetBodyType(uid, BodyType.Dynamic, fixtures, body, xform); _physics.SetCanCollide(uid, true, manager: fixtures, body: body); - _broadphase.RegenerateContacts(uid, body, fixtures, xform); + _broadphase.RegenerateContacts((uid, body, fixtures, xform)); } var timer = EnsureComp(uid); diff --git a/Content.Server/Physics/Controllers/ConveyorController.cs b/Content.Server/Physics/Controllers/ConveyorController.cs index 3c0db7f85a..bf6abff158 100644 --- a/Content.Server/Physics/Controllers/ConveyorController.cs +++ b/Content.Server/Physics/Controllers/ConveyorController.cs @@ -109,7 +109,7 @@ public sealed class ConveyorController : SharedConveyorController component.State = state; if (TryComp(uid, out var physics)) - _broadphase.RegenerateContacts(uid, physics); + _broadphase.RegenerateContacts((uid, physics)); UpdateAppearance(uid, component); Dirty(uid, component); diff --git a/Content.Shared/Stunnable/SharedStunSystem.cs b/Content.Shared/Stunnable/SharedStunSystem.cs index 8f828131f5..2d6a05540a 100644 --- a/Content.Shared/Stunnable/SharedStunSystem.cs +++ b/Content.Shared/Stunnable/SharedStunSystem.cs @@ -116,7 +116,7 @@ public abstract class SharedStunSystem : EntitySystem private void OnStunOnContactStartup(Entity ent, ref ComponentStartup args) { if (TryComp(ent, out var body)) - _broadphase.RegenerateContacts(ent, body); + _broadphase.RegenerateContacts((ent, body)); } private void OnStunOnContactCollide(Entity ent, ref StartCollideEvent args) diff --git a/Content.Shared/Throwing/ThrownItemSystem.cs b/Content.Shared/Throwing/ThrownItemSystem.cs index 54dc5c3490..3d81cc96e4 100644 --- a/Content.Shared/Throwing/ThrownItemSystem.cs +++ b/Content.Shared/Throwing/ThrownItemSystem.cs @@ -95,7 +95,7 @@ namespace Content.Shared.Throwing _physics.SetBodyStatus(uid, physics, BodyStatus.OnGround); if (physics.Awake) - _broadphase.RegenerateContacts(uid, physics); + _broadphase.RegenerateContacts((uid, physics)); } if (EntityManager.TryGetComponent(uid, out FixturesComponent? manager)) @@ -123,7 +123,7 @@ namespace Content.Shared.Throwing if (thrownItem.Thrower is not null) _adminLogger.Add(LogType.Landed, LogImpact.Low, $"{ToPrettyString(uid):entity} thrown by {ToPrettyString(thrownItem.Thrower.Value):thrower} landed."); - _broadphase.RegenerateContacts(uid, physics); + _broadphase.RegenerateContacts((uid, physics)); var landEvent = new LandEvent(thrownItem.Thrower, playSound); RaiseLocalEvent(uid, ref landEvent); }