From 0cd2c2fa9dfcde821c637059f28e15cfa32d3f97 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 10 Feb 2022 15:20:51 +1300 Subject: [PATCH] Fix welding refuelling (#6609) --- Content.Server/Construction/AnchorableSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Construction/AnchorableSystem.cs b/Content.Server/Construction/AnchorableSystem.cs index a263b65048..fddf896dcb 100644 --- a/Content.Server/Construction/AnchorableSystem.cs +++ b/Content.Server/Construction/AnchorableSystem.cs @@ -30,7 +30,7 @@ namespace Content.Server.Construction return; // If the used entity doesn't have a tool, return early. - if (!EntityManager.TryGetComponent(args.Used, out ToolComponent? usedTool)) + if (!TryComp(args.Used, out ToolComponent? usedTool) || !usedTool.Qualities.Contains(anchorable.Tool)) return; args.Handled = true;