From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:57:39 +0000 (+0300) Subject: Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=45e7891706dea63db3c6edafbedf8afbef44f531;p=space-station-14.git Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``ImmovableRodRule`` (#35462) Cleanup --- diff --git a/Content.Server/StationEvents/Events/ImmovableRodRule.cs b/Content.Server/StationEvents/Events/ImmovableRodRule.cs index 17a92e1b3d..5e324a529b 100644 --- a/Content.Server/StationEvents/Events/ImmovableRodRule.cs +++ b/Content.Server/StationEvents/Events/ImmovableRodRule.cs @@ -26,7 +26,8 @@ public sealed class ImmovableRodRule : StationEventSystem(protoName); - if (proto.TryGetComponent(out var rod) && proto.TryGetComponent(out var despawn)) + if (proto.TryGetComponent(out var rod, EntityManager.ComponentFactory) && + proto.TryGetComponent(out var despawn, EntityManager.ComponentFactory)) { if (!TryFindRandomTile(out _, out _, out _, out var targetCoords)) return;