mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
19 lines
453 B
C#
19 lines
453 B
C#
using HarmonyLib;
|
|
|
|
namespace BetterAmongUs.Patches;
|
|
|
|
[HarmonyPatch(typeof(StatsManager), nameof(StatsManager.BanMinutesLeft), MethodType.Getter)]
|
|
public static class DisconnectPenaltyPatch
|
|
{
|
|
public static bool Prefix(StatsManager __instance, ref int __result)
|
|
{
|
|
if (__instance.BanPoints != 0f)
|
|
{
|
|
__instance.BanPoints = 0f;
|
|
__result = 0;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|