diff --git a/EXILED/Exiled.API/Exiled.API.csproj b/EXILED/Exiled.API/Exiled.API.csproj index 988d63157..3d6605c62 100644 --- a/EXILED/Exiled.API/Exiled.API.csproj +++ b/EXILED/Exiled.API/Exiled.API.csproj @@ -37,6 +37,7 @@ + diff --git a/EXILED/Exiled.API/Features/Lockers/Chamber.cs b/EXILED/Exiled.API/Features/Lockers/Chamber.cs index 72e1c67bd..1b499294a 100644 --- a/EXILED/Exiled.API/Features/Lockers/Chamber.cs +++ b/EXILED/Exiled.API/Features/Lockers/Chamber.cs @@ -160,9 +160,17 @@ public float Cooldown } /// - /// Gets a value indicating whether the chamber is currently open. + /// Gets or sets a value indicating whether the chamber is currently open. /// - public bool IsOpen => Base.IsOpen; + public bool IsOpen + { + get => Base.IsOpen; + set + { + Base.SetDoor(value, null); + Locker.Base.RefreshOpenedSyncvar(); + } + } /// /// Gets the id of this chamber in . diff --git a/EXILED/Exiled.API/Features/Lockers/Locker.cs b/EXILED/Exiled.API/Features/Lockers/Locker.cs index 0e04382fc..739015590 100644 --- a/EXILED/Exiled.API/Features/Lockers/Locker.cs +++ b/EXILED/Exiled.API/Features/Lockers/Locker.cs @@ -177,7 +177,7 @@ public void AddItem(Pickup item) : chamber.Spawnpoint; // If the chamber is open, immediately set the item's parent and spawn it. - if (chamber.Base.IsOpen) + if (chamber.IsOpen) { item.Transform.SetParent(parentTransform); item.Spawn(); diff --git a/EXILED/docs/articles/SCPSLRessources/NW_Documentation.md b/EXILED/docs/articles/SCPSLRessources/NW_Documentation.md index d08dbef3d..ff31d8130 100644 --- a/EXILED/docs/articles/SCPSLRessources/NW_Documentation.md +++ b/EXILED/docs/articles/SCPSLRessources/NW_Documentation.md @@ -5019,4 +5019,4 @@ PlayerRoles.PlayableScps.Scp939.Scp939DamageHandler : AttackerDamageHandler PlayerRoles.PlayableScps.Scp3114.Scp3114DamageHandler : AttackerDamageHandler ``` - \ No newline at end of file +