mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 12:39:51 +00:00
18 lines
613 B
C#
18 lines
613 B
C#
using HarmonyLib;
|
|
using QSB.Patches;
|
|
using QSB.Tools.ProbeLauncherTool.WorldObjects;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool.Patches;
|
|
|
|
[HarmonyPatch]
|
|
public class StationaryProbeLauncherPatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
|
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(StationaryProbeLauncher), nameof(StationaryProbeLauncher.FinishExitSequence))]
|
|
public static void StationaryProbeLauncher_FinishExitSequence(StationaryProbeLauncher __instance) =>
|
|
__instance.GetWorldObject<QSBStationaryProbeLauncher>().OnLocalUseStateChanged(false);
|
|
}
|