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:
@@ -220,6 +220,11 @@ namespace Content.Server.GameObjects
|
||||
|
||||
public virtual void Deny()
|
||||
{
|
||||
if (State == DoorState.Open)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SetAppearance(DoorVisualState.Deny);
|
||||
Timer.Spawn(DenyTime, () =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user