]> 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:45:00 +0000 (20:45 +0300)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 17:45:00 +0000 (18:45 +0100)
Cleanup

Content.Server/StationEvents/EventManagerSystem.cs

index 86c98a8e30dfc82bca01f73f3681ab334f848543..a66499d0aabfcea1a8ea5d24755a902b5faadbbb 100644 (file)
@@ -210,7 +210,7 @@ public sealed class EventManagerSystem : EntitySystem
             if (prototype.Abstract)
                 continue;
 
-            if (!prototype.TryGetComponent<StationEventComponent>(out var stationEvent))
+            if (!prototype.TryGetComponent<StationEventComponent>(out var stationEvent, EntityManager.ComponentFactory))
                 continue;
 
             allEvents.Add(prototype, stationEvent);