]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix method OnEntityEnter in DamageContactsSystem (#31494)
authorDimastra <65184747+Dimastra@users.noreply.github.com>
Tue, 27 Aug 2024 00:30:42 +0000 (03:30 +0300)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2024 00:30:42 +0000 (02:30 +0200)
fix

Co-authored-by: Dimastra <dimastra@users.noreply.github.com>
Content.Shared/Damage/Systems/DamageContactsSystem.cs

index b08ef77fed5eaa4de2d185db0cc03e39800263e0..3cc73a87c59f899d66ad97f28bfa14b34f4b5034 100644 (file)
@@ -65,7 +65,7 @@ public sealed class DamageContactsSystem : EntitySystem
         if (HasComp<DamagedByContactComponent>(otherUid))
             return;
 
-        if (_whitelistSystem.IsWhitelistFail(component.IgnoreWhitelist, otherUid))
+        if (_whitelistSystem.IsWhitelistPass(component.IgnoreWhitelist, otherUid))
             return;
 
         var damagedByContact = EnsureComp<DamagedByContactComponent>(otherUid);