From 0b1363c9cb06a5cd845690dd86386f9f6546e1f4 Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Sat, 1 Apr 2023 12:41:07 +0100 Subject: [PATCH] Forgot to return whoops --- JollyRebind/modinfo.json | 2 +- src/JollyRebindMod.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/JollyRebind/modinfo.json b/JollyRebind/modinfo.json index 451c499..a1b5833 100644 --- a/JollyRebind/modinfo.json +++ b/JollyRebind/modinfo.json @@ -1,7 +1,7 @@ { "id": "sabreml.jollyrebind", "name": "Jolly Rebind", - "version": "1.1.1", + "version": "1.1.2", "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 fc38e91..19930f4 100644 --- a/src/JollyRebindMod.cs +++ b/src/JollyRebindMod.cs @@ -11,7 +11,7 @@ namespace JollyRebind { - [BepInPlugin("sabreml.jollyrebind", "JollyRebind", "1.1.1")] + [BepInPlugin("sabreml.jollyrebind", "JollyRebind", "1.1.2")] public class JollyRebindMod : BaseUnityPlugin { // A `HashSet` of previously logged controller element exceptions. @@ -77,13 +77,14 @@ private void JollyInputUpdateHK(On.Player.orig_JollyInputUpdate orig, Player sel // Otherwise, make an exception log with the name and ID of the button the player is trying to use. else { - string exceptionString = $"(JollyRebind) Unknown controller element '{mapKeyElementMap.elementIdentifierName} ({mapKeyElementMap.elementIdentifierId})'!"; + string exceptionString = $"(JollyRebind) Unknown controller element '{mapKeyElementMap.elementIdentifierName} ({mapKeyElementMap.elementIdentifierId})'! Defaulting to the map key."; // If this exceptionString hasn't been logged already. if (exceptionLogLog.Add(exceptionString)) { Debug.LogException(new System.Exception(exceptionString)); } + return; } } // If the player is using a keyboard.