From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:45:00 +0000 (+0300) Subject: Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0148c441e60a20cdf383ba83fcdbd9a668718ee5;p=space-station-14.git Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``EventManagerSystem`` (#35460) Cleanup --- 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);