set _isProjecting too

This commit is contained in:
JohnCorby 2022-10-10 22:46:32 -07:00
parent 1cfd3398c2
commit eeadd3ff4f

View File

@ -6,5 +6,9 @@ namespace QSB.EchoesOfTheEye.VisionTorch.Messages;
public class VisionTorchProjectMessage : QSBWorldObjectMessage<QSBVisionTorchItem, bool>
{
public VisionTorchProjectMessage(bool projecting) : base(projecting) { }
public override void OnReceiveRemote() => WorldObject.AttachedObject._mindProjectorTrigger.SetProjectorActive(Data);
public override void OnReceiveRemote()
{
WorldObject.AttachedObject._isProjecting = Data;
WorldObject.AttachedObject._mindProjectorTrigger.SetProjectorActive(Data);
}
}