mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
12 lines
334 B
C#
12 lines
334 B
C#
using HarmonyLib;
|
|
|
|
namespace EHR;
|
|
|
|
[HarmonyPatch(typeof(ChatController), nameof(ChatController.Toggle))]
|
|
internal class CancelBanMenuStuckPatch
|
|
{
|
|
public static void Prefix(ChatController __instance)
|
|
{
|
|
if (__instance.IsOpenOrOpening && !__instance.IsAnimating) __instance.banButton.SetVisible(false);
|
|
}
|
|
} |