From f6a6ba09f550eb4faedc3f4d77c9866ab59ff95f 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 2ef1e91e66..2fa184516a 100644 --- a/Content.Server/StationEvents/EventManagerSystem.cs +++ b/Content.Server/StationEvents/EventManagerSystem.cs @@ -229,7 +229,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);