fix method OnEntityEnter in DamageContactsSystem (#31494)
fix Co-authored-by: Dimastra <dimastra@users.noreply.github.com>
This commit is contained in:
@@ -65,7 +65,7 @@ public sealed class DamageContactsSystem : EntitySystem
|
|||||||
if (HasComp<DamagedByContactComponent>(otherUid))
|
if (HasComp<DamagedByContactComponent>(otherUid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_whitelistSystem.IsWhitelistFail(component.IgnoreWhitelist, otherUid))
|
if (_whitelistSystem.IsWhitelistPass(component.IgnoreWhitelist, otherUid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var damagedByContact = EnsureComp<DamagedByContactComponent>(otherUid);
|
var damagedByContact = EnsureComp<DamagedByContactComponent>(otherUid);
|
||||||
|
|||||||
Reference in New Issue
Block a user