From: Tayrtahn Date: Sun, 20 Apr 2025 15:00:33 +0000 (-0400) Subject: Use non-generic TryComp in `StationSpawningSystem` (#36769) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1bad0980eefbd633ff64babb88539dbfb3ff04b0;p=space-station-14.git Use non-generic TryComp in `StationSpawningSystem` (#36769) Use non-generic TryComp in StationSpawningSystem --- diff --git a/Content.Server/Station/Systems/StationSpawningSystem.cs b/Content.Server/Station/Systems/StationSpawningSystem.cs index d9c80c19dd..70176ea071 100644 --- a/Content.Server/Station/Systems/StationSpawningSystem.cs +++ b/Content.Server/Station/Systems/StationSpawningSystem.cs @@ -187,7 +187,7 @@ public sealed class StationSpawningSystem : SharedStationSpawningSystem var gearEquippedEv = new StartingGearEquippedEvent(entity.Value); RaiseLocalEvent(entity.Value, ref gearEquippedEv); - if (prototype != null && TryComp(entity.Value, out var metaData)) + if (prototype != null && TryComp(entity.Value, out MetaDataComponent? metaData)) { SetPdaAndIdCardData(entity.Value, metaData.EntityName, prototype, station); }