Cleanup: Pass in `IComponentFactory in EntityPrototype.TryGetComponent calls inside EventManagerSystem` (#35460)
Cleanup
This commit is contained in:
@@ -210,7 +210,7 @@ public sealed class EventManagerSystem : EntitySystem
|
|||||||
if (prototype.Abstract)
|
if (prototype.Abstract)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!prototype.TryGetComponent<StationEventComponent>(out var stationEvent))
|
if (!prototype.TryGetComponent<StationEventComponent>(out var stationEvent, EntityManager.ComponentFactory))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
allEvents.Add(prototype, stationEvent);
|
allEvents.Add(prototype, stationEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user