fix method OnEntityEnter in DamageContactsSystem (#31494)

fix

Co-authored-by: Dimastra <dimastra@users.noreply.github.com>
This commit is contained in:
Dimastra
2024-08-27 03:30:42 +03:00
committed by GitHub
parent 76223e8e14
commit e345aa3333

View 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);