Fix scrUIControllerPatch to Patch Postfix of scrUIController.ShowEndscreenLanterns

This commit is contained in:
copecone committed 2026-05-21 15:41:57 +09:00
1 parent 1c0f9ffa30
commit c136664d18
1 file changed
+7 -4
+7 -4
View File
@@ -1,4 +1,4 @@
using HarmonyLib;
using HarmonyLib;
namespace ADOFAIRenderer.Patch.ClassPatch
{
@@ -6,11 +6,14 @@ namespace ADOFAIRenderer.Patch.ClassPatch
// ReSharper disable once InconsistentNaming
public class scrUIControllerPatch
{
[HarmonyPrefix]
[HarmonyPostfix]
[HarmonyPatch("ShowEndscreenLanterns")]
public static bool PreventEndscreenLanterns()
public static void PreventEndscreenLanternsPostfix(scrUIController __instance)
{
return !RenderMod.IsRendering;
if (RenderMod.IsRendering && __instance != null)
{
__instance.HideEndscreenLanterns();
}
}
}
}