Fix welding refuelling (#6609)

This commit is contained in:
Leon Friedrich
2022-02-10 15:20:51 +13:00
committed by GitHub
parent 2171e71afd
commit 0cd2c2fa9d

View File

@@ -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;