From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:37:50 +0000 (+0300) Subject: Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=969e7bdd39e449cd0f25493d2fa18007ebe64da7;p=space-station-14.git Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls inside ``FlatpackSystem`` (#35457) * Cleanup * Update --- diff --git a/Content.Client/Construction/FlatpackSystem.cs b/Content.Client/Construction/FlatpackSystem.cs index 911ff1279c..f39c2327ca 100644 --- a/Content.Client/Construction/FlatpackSystem.cs +++ b/Content.Client/Construction/FlatpackSystem.cs @@ -27,7 +27,7 @@ public sealed class FlatpackSystem : SharedFlatpackSystem if (!PrototypeManager.TryIndex(machineBoardId, out var machineBoardPrototype)) return; - if (!machineBoardPrototype.TryGetComponent(out var sprite)) + if (!machineBoardPrototype.TryGetComponent(out var sprite, EntityManager.ComponentFactory)) return; Color? color = null;