From 2dc4bbd60432f590d76a5d13650cca0b1d7a22b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Fri, 14 Aug 2020 23:54:50 +0200 Subject: [PATCH] Fix welder updating when deleted --- .../GameObjects/Components/Interactable/WelderComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Interactable/WelderComponent.cs b/Content.Server/GameObjects/Components/Interactable/WelderComponent.cs index 515ecc8e3c..3f2e07206d 100644 --- a/Content.Server/GameObjects/Components/Interactable/WelderComponent.cs +++ b/Content.Server/GameObjects/Components/Interactable/WelderComponent.cs @@ -212,7 +212,7 @@ namespace Content.Server.GameObjects.Components.Interactable public void OnUpdate(float frameTime) { - if (!HasQuality(ToolQuality.Welding) || !WelderLit) + if (!HasQuality(ToolQuality.Welding) || !WelderLit || Owner.Deleted) return; _solutionComponent?.TryRemoveReagent("chem.WeldingFuel", ReagentUnit.New(FuelLossRate * frameTime));