Use non-generic TryComp in StationSpawningSystem (#36769)

Use non-generic TryComp in StationSpawningSystem
This commit is contained in:
Tayrtahn
2025-04-20 11:00:33 -04:00
committed by GitHub
parent ae41b6547e
commit 1bad0980ee

View 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);
}