diff --git a/Exiled.API/Features/Doors/Door.cs b/Exiled.API/Features/Doors/Door.cs index a3172e2900..fa9e298238 100644 --- a/Exiled.API/Features/Doors/Door.cs +++ b/Exiled.API/Features/Doors/Door.cs @@ -107,7 +107,7 @@ internal Door(DoorVariant door, List rooms) /// /// 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. 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. 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