Skip to content

Commit

Permalink
Trigger crash fix
Browse files Browse the repository at this point in the history
Thanks to Mewkitty22 for (unintentionally) letting me know that controller triggers are bindable now.
  • Loading branch information
SabreML committed Apr 14, 2023
1 parent cc1e799 commit 7ae3f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JollyRebind/modinfo.json
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
4 changes: 2 additions & 2 deletions src/JollyRebindMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7ae3f15

Please sign in to comment.