]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Use non-generic TryComp in `StationSpawningSystem` (#36769)
authorTayrtahn <tayrtahn@gmail.com>
Sun, 20 Apr 2025 15:00:33 +0000 (11:00 -0400)
committerGitHub <noreply@github.com>
Sun, 20 Apr 2025 15:00:33 +0000 (01:00 +1000)
Use non-generic TryComp in StationSpawningSystem

Content.Server/Station/Systems/StationSpawningSystem.cs

index d9c80c19dd96ba59ae430eb0bd5b5ba3ac5fa3a6..70176ea071e5f827ea7e8650ea94e96e342d5d74 100644 (file)
@@ -187,7 +187,7 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem
         var gearEquippedEv = new StartingGearEquippedEvent(entity.Value);
         RaiseLocalEvent(entity.Value, ref gearEquippedEv);
 
-        if (prototype != null && TryComp<MetaDataComponent>(entity.Value, out var metaData))
+        if (prototype != null && TryComp(entity.Value, out MetaDataComponent? metaData))
         {
             SetPdaAndIdCardData(entity.Value, metaData.EntityName, prototype, station);
         }