From 45e7891706dea63db3c6edafbedf8afbef44f531 Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:57:39 +0300 Subject: [PATCH] Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``ImmovableRodRule`` (#35462) Cleanup --- Content.Server/StationEvents/Events/ImmovableRodRule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.51.2