diff --git a/JollyRebind/modinfo.json b/JollyRebind/modinfo.json index 7b6646d..0147bd7 100644 --- a/JollyRebind/modinfo.json +++ b/JollyRebind/modinfo.json @@ -1,7 +1,7 @@ { "id": "sabreml.jollyrebind", "name": "Jolly Rebind", - "version": "1.2.0", + "version": "1.2.1", "target_game_version": "v1.9.07b", "authors": "SabreML", "description": "Adds a customisable input to change the Jolly Co-op pointing button.", diff --git a/src/JollyRebindMod.cs b/src/JollyRebindMod.cs index 14eb248..db9b83d 100644 --- a/src/JollyRebindMod.cs +++ b/src/JollyRebindMod.cs @@ -11,7 +11,7 @@ namespace JollyRebind { - [BepInPlugin("sabreml.jollyrebind", "JollyRebind", "1.2.0")] + [BepInPlugin("sabreml.jollyrebind", "JollyRebind", "1.2.1")] public class JollyRebindMod : BaseUnityPlugin { // A `HashSet` of previously logged controller element exceptions. @@ -58,7 +58,7 @@ private static KeyCode GetMapKey(int playerNumber) if (playerControls.gamePad) { // The button on the controller which is bound to the 'Map' action. - ActionElementMap mapKeyElementMap = playerControls.gameControlMap.ButtonMaps + ActionElementMap mapKeyElementMap = playerControls.gameControlMap.AllMaps .First(elementMap => elementMap.actionId == RewiredConsts.Action.Map); // If that button's name is in the `rewiredNameToKeyCode` dictionary for the controller.