Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion EXILED/Exiled.API/Features/Doors/Door.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,11 @@ public void ChangeLock(DoorLockType lockType)
/// <param name="lockType">The <see cref="Enums.DoorLockType"/> of the lockdown.</param>
public void Lock(float time, DoorLockType lockType)
{
ChangeLock(lockType);
DoorLockType locks = DoorLockType;
locks |= lockType;
Base.NetworkActiveLocks = (ushort)locks;
DoorEvents.TriggerAction(Base, IsLocked ? DoorAction.Locked : DoorAction.Unlocked, null);

Unlock(time, lockType);
}

Expand Down