Skip to content

Commit

Permalink
fix: fix a crash (#30)
Browse files Browse the repository at this point in the history
Release-as: 1.4.5
  • Loading branch information
Hypick122 committed Mar 10, 2024
1 parent e814131 commit f18f53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BetterShotgun/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void SetupKeybindCallbacks()
{
InputActionsInstance.ReloadKey.AddBinding($"<keyboard>/{Config.Default.ReloadKeybind}");

if (Config.Default.ReloadKeybind.Replace("<keyboard>/", "") != "e")
if (Config.Default.ReloadKeybind.ToString().Replace("<keyboard>/", "") != "e")
{
Log.LogInfo($"Start ReloadKeybind with key {InputActionsInstance.ReloadKey.GetBindingDisplayString()}");
InputActionsInstance.ReloadKey.performed += OnReloadKeyPressed;
Expand Down

0 comments on commit f18f53f

Please sign in to comment.