From 0e2f4fda31676dcfdccee965b02556a8ec79c399 Mon Sep 17 00:00:00 2001 From: boiled-water-tsar <32570017+boiled-water-tsar@users.noreply.github.com> Date: Thu, 28 May 2020 12:31:16 +0200 Subject: [PATCH] Disallow welding of open lockers (#1011) Co-authored-by: boiled water --- .../Components/Items/Storage/EntityStorageComponent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs index 647380b819..9722493364 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/EntityStorageComponent.cs @@ -367,6 +367,10 @@ namespace Content.Server.GameObjects.Components public bool InteractUsing(InteractUsingEventArgs eventArgs) { + + if (Open) + return false; + if (!CanWeldShut) return false;