Use non-generic TryComp in StationSpawningSystem (#36769)
Use non-generic TryComp in StationSpawningSystem
This commit is contained in:
parent
ae41b6547e
commit
1bad0980ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue