Skip to content

Commit

Permalink
Code less verbose and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PotentiallyTom committed Sep 22, 2024
1 parent 657388d commit 1420a2e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -341,7 +340,7 @@ private void OnInteractUsing(EntityUid uid, GasVentPumpComponent component, Inte
if (args.Handled
|| component.UnderPressureLockout == false
|| !_toolSystem.HasQuality(args.Used, "Screwing")
|| (!CompOrNull<TransformComponent>(uid)?.Anchored ?? false) // If component doesn't exist continue, else check for anchor, stops it from eating the deconstruction screwdrivering
|| !Transform(uid).Anchored
)
{
return;
Expand Down

0 comments on commit 1420a2e

Please sign in to comment.