mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
15 lines
354 B
C#
15 lines
354 B
C#
using HarmonyLib;
|
|
|
|
namespace Reactor.Debugger.Patches;
|
|
|
|
[HarmonyPatch(typeof(EndGameNavigation), nameof(EndGameNavigation.ShowDefaultNavigation))]
|
|
internal static class AutoPlayAgainPatch
|
|
{
|
|
public static void Postfix(EndGameNavigation __instance)
|
|
{
|
|
if (!DebuggerConfig.AutoPlayAgain.Value) return;
|
|
|
|
__instance.NextGame();
|
|
}
|
|
}
|