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)

This commit is contained in:
tentekal
2020-07-10 09:12:34 -04:00
committed by GitHub
parent 13e3dc7a70
commit 4a772c9e59

View File

@@ -220,6 +220,11 @@ namespace Content.Server.GameObjects
public virtual void Deny()
{
if (State == DoorState.Open)
{
return;
}
SetAppearance(DoorVisualState.Deny);
Timer.Spawn(DenyTime, () =>
{