Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -14,7 +14,7 @@ public sealed class SpawnOnDespawnSystem : EntitySystem
|
||||
|
||||
private void OnDespawn(EntityUid uid, SpawnOnDespawnComponent comp, ref TimedDespawnEvent args)
|
||||
{
|
||||
if (!TryComp<TransformComponent>(uid, out var xform))
|
||||
if (!TryComp(uid, out TransformComponent? xform))
|
||||
return;
|
||||
|
||||
Spawn(comp.Prototype, xform.Coordinates);
|
||||
|
||||
Reference in New Issue
Block a user