26 lines
548 B
C#
Raw Normal View History

using HarmonyLib;
using QSB.Patches;
namespace QSB.EyeOfTheUniverse.MaskSync.Patches
{
internal class MaskPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
[HarmonyPrefix]
[HarmonyPatch(typeof(EyeShuttleController), nameof(EyeShuttleController.OnLaunchSlotActivated))]
public static bool DontLaunch(EyeShuttleController __instance)
{
if (__instance._isPlayerInside)
{
return true;
}
2022-01-12 21:43:57 -08:00
MaskManager.FlickerOutShuttle();
__instance.enabled = false;
return false;
}
}
}