using ADOFAIRenderer.Component; using HarmonyLib; namespace ADOFAIRenderer.Patch.ClassPatch { [HarmonyPatch(typeof(scrPlayerManager))] // ReSharper disable once InconsistentNaming public static class scrPlayerManagerPatch { [HarmonyPrefix] [HarmonyPatch("AnyValidInputWasTriggered")] // ReSharper disable once InconsistentNaming private static bool IgnoreInput(ref bool __result) { if (!RenderMod.IsRendering) return true; __result = RenderManager.FrameCount == 0 && RenderManager.Countdown == 0; return false; } } }