SHA256
Fix scrUIControllerPatch to Patch Postfix of scrUIController.ShowEndscreenLanterns
This commit is contained in:
1 parent
1c0f9ffa30
commit
c136664d18
1 file changed
+7
-4
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user