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 +}