mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
16 lines
454 B
C#
16 lines
454 B
C#
using HarmonyLib;
|
|
using MiraAPI.Example.Buttons.Freezer;
|
|
using MiraAPI.Example.Extension.Options;
|
|
using MiraAPI.GameOptions;
|
|
|
|
namespace MiraAPI.Example.Extension.Patches;
|
|
|
|
[HarmonyPatch(typeof(FreezeButton), nameof(FreezeButton.MaxUses), MethodType.Getter)]
|
|
public static class FreezeButtonPatch
|
|
{
|
|
public static void Postfix(ref int __result)
|
|
{
|
|
__result = (int)OptionGroupSingleton<ExtendedFreezerOptions>.Instance.FreezeUses;
|
|
}
|
|
}
|