From 3d0c97ef0dd2701229a1ead56d19df4a42656db1 Mon Sep 17 00:00:00 2001 From: Bolton Date: Sat, 23 Mar 2024 23:32:56 +0100 Subject: [PATCH 1/3] fix: InteractingDoorPatch --- Exiled.Events/Patches/Events/Player/InteractingDoor.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Exiled.Events/Patches/Events/Player/InteractingDoor.cs b/Exiled.Events/Patches/Events/Player/InteractingDoor.cs index 10ecb78c3f..e785415150 100644 --- a/Exiled.Events/Patches/Events/Player/InteractingDoor.cs +++ b/Exiled.Events/Patches/Events/Player/InteractingDoor.cs @@ -44,10 +44,6 @@ private static IEnumerable Transpiler(IEnumerable Transpiler(IEnumerable.Pool.Return(newInstructions); } - - private static bool CanStateChange(DoorVariant variant) - { - return !(variant.GetExactState() > 0f && variant.GetExactState() < 1f); - } } } \ No newline at end of file From 89b3a72688896300f0d2c16946fcb0c67a15811d Mon Sep 17 00:00:00 2001 From: Bolton Date: Sun, 24 Mar 2024 00:50:43 +0100 Subject: [PATCH 2/3] fix: IsFullyOpen 173Gate --- Exiled.API/Features/Doors/Door.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Exiled.API/Features/Doors/Door.cs b/Exiled.API/Features/Doors/Door.cs index a3172e2900..69e1153f8c 100644 --- a/Exiled.API/Features/Doors/Door.cs +++ b/Exiled.API/Features/Doors/Door.cs @@ -102,12 +102,12 @@ internal Door(DoorVariant door, List rooms) /// /// Gets a value indicating whether the door is fully open. /// - public virtual bool IsFullyOpen => ExactState is 1; + public virtual bool IsFullyOpen => ExactState is 1 || (Base is Timed173PryableDoor && ExactState is 0.5845918f); /// /// Gets a value indicating whether or not the door is currently moving. /// - public virtual bool IsMoving => ExactState is not(0 or 1); + public virtual bool IsMoving => !(IsFullyOpen || IsFullyClosed); /// /// Gets a value indicating the precise state of the door, from 0-1. A value of 0 indicates the door is fully closed, while a value of 1 indicates the door is fully open. Values in-between represent the door's animation progress. From 9bbb4979c921daf7294cf6d29fbbd71883784dc4 Mon Sep 17 00:00:00 2001 From: Bolton Date: Sun, 24 Mar 2024 01:01:39 +0100 Subject: [PATCH 3/3] fix --- Exiled.API/Features/Doors/Door.cs | 2 +- Exiled.API/Features/Doors/Gate.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Exiled.API/Features/Doors/Door.cs b/Exiled.API/Features/Doors/Door.cs index 69e1153f8c..fa9e298238 100644 --- a/Exiled.API/Features/Doors/Door.cs +++ b/Exiled.API/Features/Doors/Door.cs @@ -102,7 +102,7 @@ internal Door(DoorVariant door, List rooms) /// /// Gets a value indicating whether the door is fully open. /// - public virtual bool IsFullyOpen => ExactState is 1 || (Base is Timed173PryableDoor && ExactState is 0.5845918f); + public virtual bool IsFullyOpen => ExactState is 1; /// /// Gets a value indicating whether or not the door is currently moving. diff --git a/Exiled.API/Features/Doors/Gate.cs b/Exiled.API/Features/Doors/Gate.cs index 43d42e03d8..20679cf582 100644 --- a/Exiled.API/Features/Doors/Gate.cs +++ b/Exiled.API/Features/Doors/Gate.cs @@ -48,7 +48,7 @@ public Gate(PryableDoor door, List room) /// /// Gets a value indicating whether the door is fully open. /// - public override bool IsFullyOpen => base.IsFullyOpen; + public override bool IsFullyOpen => base.IsFullyOpen || (Base is Timed173PryableDoor && ExactState is 0.5845918f); /// /// Gets a value indicating whether or not the door is currently moving.