Files
ADOFAIRenderer/Patch/ClassPatch/scrUIControllerPatch.cs
T
2026-05-23 08:29:46 +09:00

20 lines
581 B
C#

using HarmonyLib;
namespace ADOFAIRenderer.Patch.ClassPatch
{
[HarmonyPatch(typeof(scrUIController))]
// ReSharper disable once InconsistentNaming
public class scrUIControllerPatch
{
[HarmonyPostfix]
[HarmonyPatch("ShowEndscreenLanterns")]
// ReSharper disable once InconsistentNaming
public static void PreventEndscreenLanternsPostfix(scrUIController __instance)
{
if (RenderMod.IsRendering && __instance != null)
{
__instance.HideEndscreenLanterns();
}
}
}
}