diff --git a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs index 7ce3312..e2ddb4a 100644 --- a/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs +++ b/MiraAPI/Patches/Roles/RoleOptionsCollectionPatch.cs @@ -8,7 +8,7 @@ namespace MiraAPI.Patches.Roles; /// /// Patches to return the correct role counts. /// -[HarmonyPatch(typeof(RoleOptionsCollectionV08))] +[HarmonyPatch(typeof(RoleOptionsCollectionV09))] public static class RoleOptionsCollectionPatch { /// @@ -16,7 +16,7 @@ public static class RoleOptionsCollectionPatch /// /// Return false to skip original method, true to not. [HarmonyPrefix] - [HarmonyPatch(nameof(RoleOptionsCollectionV08.GetChancePerGame))] + [HarmonyPatch(nameof(RoleOptionsCollectionV09.GetChancePerGame))] public static bool GetChancePrefix(RoleTypes role, ref int __result) { if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null) @@ -46,7 +46,7 @@ public static class RoleOptionsCollectionPatch /// /// Return false to skip original method, true to not. [HarmonyPrefix] - [HarmonyPatch(nameof(RoleOptionsCollectionV08.GetNumPerGame))] + [HarmonyPatch(nameof(RoleOptionsCollectionV09.GetNumPerGame))] public static bool GetNumPrefix(RoleTypes role, ref int __result) { if (!CustomRoleManager.GetCustomRoleBehaviour(role, out var customRole) || customRole == null)