From f1da37804fa45bf2f4d5382d532dd46716a92fd4 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 10 Oct 2020 22:35:52 +1100 Subject: [PATCH] Welder can no longer start DoAfter on doors if unlit (#2203) Co-authored-by: Metal Gear Sloth --- .../GameObjects/Components/Doors/ServerDoorComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs index 6852509d44..846c27740e 100644 --- a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs +++ b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs @@ -471,7 +471,7 @@ namespace Content.Server.GameObjects.Components.Doors return false; } - if (!eventArgs.Using.TryGetComponent(out WelderComponent? tool)) + if (!eventArgs.Using.TryGetComponent(out WelderComponent? tool) || !tool.WelderLit) { _beingWelded = false; return false;