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