Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -72,7 +72,7 @@ public abstract class SharedEmitSoundSystem : EntitySystem
|
||||
private void OnEmitSoundOnLand(EntityUid uid, BaseEmitSoundComponent component, ref LandEvent args)
|
||||
{
|
||||
if (!args.PlaySound ||
|
||||
!TryComp<TransformComponent>(uid, out var xform) ||
|
||||
!TryComp(uid, out TransformComponent? xform) ||
|
||||
!TryComp<MapGridComponent>(xform.GridUid, out var grid))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user