From 1420a2ed10f17ee300a8c3976c0ee9968c4c18ae Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 22 Sep 2024 20:19:08 +0100 Subject: [PATCH] Code less verbose and cleanup --- .../Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs index 5f1b047a7e442b..9d9862ff1dde88 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs @@ -39,7 +39,6 @@ public sealed class GasVentPumpSystem : EntitySystem [Dependency] private readonly SharedToolSystem _toolSystem = default!; [Dependency] private readonly SharedDoAfterSystem _doAfterSystem = default!; [Dependency] private readonly IGameTiming _timing = default!; - // [Dependency] private readonly TransformSystem _transformSystem = default!; public override void Initialize() { base.Initialize(); @@ -341,7 +340,7 @@ private void OnInteractUsing(EntityUid uid, GasVentPumpComponent component, Inte if (args.Handled || component.UnderPressureLockout == false || !_toolSystem.HasQuality(args.Used, "Screwing") - || (!CompOrNull(uid)?.Anchored ?? false) // If component doesn't exist continue, else check for anchor, stops it from eating the deconstruction screwdrivering + || !Transform(uid).Anchored ) { return;