Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 57d3a3f

Browse files
committed
Fix UI Mouse Inspect hotkey not being implemented
1 parent c88182c commit 57d3a3f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/Inspectors/MouseInspector.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,11 @@ public void StopInspect()
113113

114114
public bool TryUpdate()
115115
{
116-
if (ConfigManager.World_MouseInspect_Keybind.Value != KeyCode.None)
117-
{
118-
if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value))
119-
Instance.StartInspect(MouseInspectMode.World);
120-
}
116+
if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value))
117+
Instance.StartInspect(MouseInspectMode.World);
121118

122-
if (ConfigManager.World_MouseInspect_Keybind.Value != KeyCode.None)
123-
{
124-
if (InputManager.GetKeyDown(ConfigManager.World_MouseInspect_Keybind.Value))
125-
Instance.StartInspect(MouseInspectMode.World);
126-
}
119+
if (InputManager.GetKeyDown(ConfigManager.UI_MouseInspect_Keybind.Value))
120+
Instance.StartInspect(MouseInspectMode.UI);
127121

128122
if (Inspecting)
129123
UpdateInspect();

0 commit comments

Comments
 (0)