Skip to content

Commit

Permalink
Sabotage Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Digi committed Oct 15, 2024
1 parent eeff357 commit 29dc07a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LevelImposter/Core/Patches/Triggers/SabStartPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 29dc07a

Please sign in to comment.