From 850a31292331884456dd67fee4788f7ceaaa8683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20=C3=96zko=C3=A7?= Date: Tue, 4 Feb 2025 00:03:36 +0200 Subject: [PATCH] hotfix(stateful-events) Small fix for wrong usage when checking adding into excluded lookups --- .../Assets/6. Events/Scripts/Stateful/StatefulJobs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PhysicsSamples/Assets/6. Events/Scripts/Stateful/StatefulJobs.cs b/PhysicsSamples/Assets/6. Events/Scripts/Stateful/StatefulJobs.cs index 2a3fa03a9..de75033e8 100644 --- a/PhysicsSamples/Assets/6. Events/Scripts/Stateful/StatefulJobs.cs +++ b/PhysicsSamples/Assets/6. Events/Scripts/Stateful/StatefulJobs.cs @@ -81,7 +81,7 @@ public void Execute() var addToEntityA = EventLookup.HasBuffer(statefulEvent.EntityA) && (!UseExcludeComponent || !EventExcludeLookup.HasComponent(statefulEvent.EntityA)); var addToEntityB = EventLookup.HasBuffer(statefulEvent.EntityB) && - (!UseExcludeComponent || !EventExcludeLookup.HasComponent(statefulEvent.EntityA)); + (!UseExcludeComponent || !EventExcludeLookup.HasComponent(statefulEvent.EntityB)); if (addToEntityA) { @@ -96,4 +96,4 @@ public void Execute() } } } -} \ No newline at end of file +}