Take welder into account.

This commit is contained in:
zumorica
2020-04-29 15:41:05 +02:00
parent 659d623784
commit 2c4354c95a

View File

@@ -145,6 +145,7 @@ namespace Content.Server.GameObjects.Components.Construction
if (!slapped.TryGetComponent<ToolComponent>(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;