]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Damaged by contact fix (#31921)
authorKirus59 <145689588+Kirus59@users.noreply.github.com>
Sat, 7 Sep 2024 23:46:24 +0000 (02:46 +0300)
committerGitHub <noreply@github.com>
Sat, 7 Sep 2024 23:46:24 +0000 (17:46 -0600)
Content.Shared/Damage/Systems/DamageContactsSystem.cs

index 3cc73a87c59f899d66ad97f28bfa14b34f4b5034..9a53d83eb265c1440e9b409c06df01214b269e39 100644 (file)
@@ -42,11 +42,11 @@ public sealed class DamageContactsSystem : EntitySystem
     {
         var otherUid = args.OtherEntity;
 
-        if (!TryComp<PhysicsComponent>(uid, out var body))
+        if (!TryComp<PhysicsComponent>(otherUid, out var body))
             return;
 
         var damageQuery = GetEntityQuery<DamageContactsComponent>();
-        foreach (var ent in _physics.GetContactingEntities(uid, body))
+        foreach (var ent in _physics.GetContactingEntities(otherUid, body))
         {
             if (ent == uid)
                 continue;