]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Pass in ``IComponentFactory`` in ``EntityPrototype.TryGetComponent`` calls...
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 24 Feb 2025 17:37:50 +0000 (20:37 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 17:37:50 +0000 (18:37 +0100)
* Cleanup

* Update

Content.Client/Construction/FlatpackSystem.cs

index 911ff1279cfdb9c3bfa4956f6a953429104f0967..f39c2327ca4cbe802798370c201ff1824be00d17 100644 (file)
@@ -27,7 +27,7 @@ public sealed class FlatpackSystem : SharedFlatpackSystem
         if (!PrototypeManager.TryIndex<EntityPrototype>(machineBoardId, out var machineBoardPrototype))
             return;
 
-        if (!machineBoardPrototype.TryGetComponent<SpriteComponent>(out var sprite))
+        if (!machineBoardPrototype.TryGetComponent<SpriteComponent>(out var sprite, EntityManager.ComponentFactory))
             return;
 
         Color? color = null;