From 4a772c9e59f1b474350db091bd713ae390c69484 Mon Sep 17 00:00:00 2001 From: tentekal Date: Fri, 10 Jul 2020 09:12:34 -0400 Subject: [PATCH] Added a check to ensure the door will not change state to 'closed' or 'deny' if a player without access touches a door opened by a user with access. (#1341) --- .../GameObjects/Components/Doors/ServerDoorComponent.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs index 50ea455972..e922096914 100644 --- a/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs +++ b/Content.Server/GameObjects/Components/Doors/ServerDoorComponent.cs @@ -220,6 +220,11 @@ namespace Content.Server.GameObjects public virtual void Deny() { + if (State == DoorState.Open) + { + return; + } + SetAppearance(DoorVisualState.Deny); Timer.Spawn(DenyTime, () => {