Ignore puddles when prying floor tiles (#8896)

This commit is contained in:
themias
2022-06-20 22:03:54 -04:00
committed by GitHub
parent 3727696c01
commit 4b50bef5fb

View File

@@ -1,4 +1,5 @@
using System.Threading;
using Content.Server.Fluids.Components;
using Content.Server.Tools.Components;
using Content.Shared.Interaction;
using Content.Shared.Maps;
@@ -39,7 +40,7 @@ public sealed partial class ToolSystem
private void OnTilePryingAfterInteract(EntityUid uid, TilePryingComponent component, AfterInteractEvent args)
{
if (args.Handled || !args.CanReach || args.Target != null) return;
if (args.Handled || !args.CanReach || (args.Target != null && !HasComp<PuddleComponent>(args.Target))) return;
if (TryPryTile(args.User, component, args.ClickLocation))
args.Handled = true;