From 509d1429d458ebf745b2c2d45febcd33c1635d04 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Fri, 11 Mar 2022 09:41:37 -0800 Subject: [PATCH] QSBPictureFrameDoor: where T : PictureFrameDoorInterface --- .../PictureFrameDoors/WorldObjects/QSBPictureFrameDoor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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