From c45a782026f3ba4c64a2ab29da5ef183b3a61be98637db168290d7a43df20151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=BB=A8=ED=8A=B8=EB=A1=A4DELTA?= Date: Thu, 21 May 2026 14:30:40 +0900 Subject: [PATCH] Add Endscreen Lantern Prevention --- Patch/ClassPatch/scrControllerPatch.cs | 2 +- Patch/ClassPatch/scrUIControllerPatch.cs | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Patch/ClassPatch/scrControllerPatch.cs b/Patch/ClassPatch/scrControllerPatch.cs index 60c5d15..bdac1db 100644 --- a/Patch/ClassPatch/scrControllerPatch.cs +++ b/Patch/ClassPatch/scrControllerPatch.cs @@ -11,6 +11,6 @@ namespace ADOFAIRenderer.Patch.ClassPatch public static bool PreventPause() { return !RenderMod.IsRendering; - } + } } } \ No newline at end of file diff --git a/Patch/ClassPatch/scrUIControllerPatch.cs b/Patch/ClassPatch/scrUIControllerPatch.cs index c97040d..7d0b490 100644 --- a/Patch/ClassPatch/scrUIControllerPatch.cs +++ b/Patch/ClassPatch/scrUIControllerPatch.cs @@ -1,7 +1,16 @@ -namespace ADOFAIRenderer.Patch.ClassPatch +using HarmonyLib; + +namespace ADOFAIRenderer.Patch.ClassPatch { + [HarmonyPatch(typeof(scrUIController))] + // ReSharper disable once InconsistentNaming public class scrUIControllerPatch { - + [HarmonyPrefix] + [HarmonyPatch("ShowEndscreenLanterns")] + public static bool PreventEndscreenLanterns() + { + return !RenderMod.IsRendering; + } } } \ No newline at end of file