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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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