From 8abf55da8824627ea5d656b54ee52f7633c8a7ef Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 27 Mar 2022 13:32:10 -0700 Subject: [PATCH] Update DreamRaftPatches.cs --- .../DreamRafts/Patches/DreamRaftPatches.cs | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/QSB/EchoesOfTheEye/DreamRafts/Patches/DreamRaftPatches.cs b/QSB/EchoesOfTheEye/DreamRafts/Patches/DreamRaftPatches.cs index b8798938..2163a3aa 100644 --- a/QSB/EchoesOfTheEye/DreamRafts/Patches/DreamRaftPatches.cs +++ b/QSB/EchoesOfTheEye/DreamRafts/Patches/DreamRaftPatches.cs @@ -13,8 +13,8 @@ public class DreamRaftPatches : QSBPatch public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect; [HarmonyPrefix] - [HarmonyPatch(typeof(DreamRaftProjector), nameof(DreamRaftProjector.SetLit))] - private static void SetLit(DreamRaftProjector __instance, + [HarmonyPatch(typeof(DreamRaftProjector), nameof(DreamRaftProjector.SpawnRaft))] + private static void SpawnRaft(DreamRaftProjector __instance, bool lit) { if (Remote) @@ -22,29 +22,6 @@ public class DreamRaftPatches : QSBPatch return; } - if (__instance._lit == lit) - { - return; - } - - if (!QSBWorldSync.AllObjectsReady) - { - return; - } - - __instance.GetWorldObject() - .SendMessage(new SpawnRaftMessage()); - } - - [HarmonyPrefix] - [HarmonyPatch(typeof(DreamRaftProjector), nameof(DreamRaftProjector.RespawnRaft))] - private static void RespawnRaft(DreamRaftProjector __instance) - { - if (Remote) - { - return; - } - if (!QSBWorldSync.AllObjectsReady) { return;