From 2c4354c95a4167f8221bc4fe8f5003da3fb6ad09 Mon Sep 17 00:00:00 2001 From: zumorica Date: Wed, 29 Apr 2020 15:41:05 +0200 Subject: [PATCH] Take welder into account. --- .../GameObjects/Components/Construction/ConstructionComponent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Content.Server/GameObjects/Components/Construction/ConstructionComponent.cs b/Content.Server/GameObjects/Components/Construction/ConstructionComponent.cs index f3f28db670..d6d347e9d3 100644 --- a/Content.Server/GameObjects/Components/Construction/ConstructionComponent.cs +++ b/Content.Server/GameObjects/Components/Construction/ConstructionComponent.cs @@ -145,6 +145,7 @@ namespace Content.Server.GameObjects.Components.Construction if (!slapped.TryGetComponent(out var tool)) return false; if (toolStep.Tool != tool.Behavior) return false; + if (toolStep.Tool == Tool.Welder && !tool.TryWeld(toolStep.Amount)) return false; tool.PlayUseSound(); return true;