From 29dc07aaf6dc0ffc286c8a4ace21471216e2ae61 Mon Sep 17 00:00:00 2001 From: Digi Date: Mon, 14 Oct 2024 21:39:42 -0500 Subject: [PATCH] Sabotage Bug Fixes --- LevelImposter/Core/Patches/Triggers/SabStartPatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LevelImposter/Core/Patches/Triggers/SabStartPatch.cs b/LevelImposter/Core/Patches/Triggers/SabStartPatch.cs index 46a4054..8f66341 100644 --- a/LevelImposter/Core/Patches/Triggers/SabStartPatch.cs +++ b/LevelImposter/Core/Patches/Triggers/SabStartPatch.cs @@ -32,7 +32,7 @@ public static class SabStartPatch { SystemTypes.MushroomMixupSabotage, "onMixupStart" } }; - public static bool Prefix([HarmonyArgument(0)] SystemTypes systemType) + public static bool Prefix([HarmonyArgument(0)] SystemTypes systemType, ref PlayerTask __result) { if (!LIShipStatus.IsInstance()) return true; @@ -52,6 +52,7 @@ public static bool Prefix([HarmonyArgument(0)] SystemTypes systemType) taskClone.Owner = localPlayer; taskClone.Initialize(); localPlayer.myTasks.Add(taskClone); + __result = taskClone; // Fire Trigger if (SabotageOptionsBuilder.TriggerObject != null)