diff --git a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoor.cs b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoor.cs index 07025072..1e079766 100644 --- a/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoor.cs +++ b/QSB/EchoesOfTheEye/PictureFrameDoors/WorldObjects/QSBPictureFrameDoor.cs @@ -6,10 +6,10 @@ using UnityEngine; namespace QSB.EchoesOfTheEye.PictureFrameDoors.WorldObjects; public abstract class QSBPictureFrameDoor : WorldObject, IQSBPictureFrameDoor - where T : MonoBehaviour + where T : PictureFrameDoorInterface { public override void SendInitialState(uint to) - => (this as IQSBPictureFrameDoor).SendMessage(new PictureFrameDoorMessage((AttachedObject as PictureFrameDoorInterface)._door.IsOpen())); + => ((IQSBPictureFrameDoor)this).SendMessage(new PictureFrameDoorMessage(AttachedObject._door.IsOpen())); public abstract void SetOpenState(bool open); } \ No newline at end of file