Allow opening doors mid-deny animation, if you have the access (#24969)

Allow opening doors mid-deny animation, if you have access ofc
This commit is contained in:
Kot
2024-02-06 03:31:21 +04:00
committed by GitHub
parent 9dc73f0b61
commit bedccf8e31
3 changed files with 5 additions and 6 deletions

View File

@@ -212,9 +212,9 @@ public abstract class SharedDoorSystem : EntitySystem
if (!Resolve(uid, ref door))
return false;
if (door.State == DoorState.Closed)
if (door.State is DoorState.Closed or DoorState.Denying)
{
return TryOpen(uid, door, user, predicted);
return TryOpen(uid, door, user, predicted, quiet: door.State == DoorState.Denying);
}
else if (door.State == DoorState.Open)
{