From 0148c441e60a20cdf383ba83fcdbd9a668718ee5 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:45:00 +0300 Subject: [PATCH] Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``EventManagerSystem`` (#35460) Cleanup --- Content.Server/StationEvents/EventManagerSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/StationEvents/EventManagerSystem.cs b/Content.Server/StationEvents/EventManagerSystem.cs index 86c98a8e30..a66499d0aa 100644 --- a/Content.Server/StationEvents/EventManagerSystem.cs +++ b/Content.Server/StationEvents/EventManagerSystem.cs @@ -210,7 +210,7 @@ public sealed class EventManagerSystem : EntitySystem if (prototype.Abstract) continue; - if (!prototype.TryGetComponent(out var stationEvent)) + if (!prototype.TryGetComponent(out var stationEvent, EntityManager.ComponentFactory)) continue; allEvents.Add(prototype, stationEvent);