Use non-generic TryComp() for metadata & transform (#28133)
This commit is contained in:
@@ -53,7 +53,7 @@ public sealed class FultonSystem : SharedFultonSystem
|
||||
private void Fulton(EntityUid uid, FultonedComponent component)
|
||||
{
|
||||
if (!Deleted(component.Beacon) &&
|
||||
TryComp<TransformComponent>(component.Beacon, out var beaconXform) &&
|
||||
TryComp(component.Beacon, out TransformComponent? beaconXform) &&
|
||||
!Container.IsEntityOrParentInContainer(component.Beacon.Value, xform: beaconXform) &&
|
||||
CanFulton(uid))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user