Skip to content

Commit 32939c8

Browse files
committed
Fix keybind config NRE
1 parent b2f0967 commit 32939c8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

MicroEngineerProject/MicroEngineer/MicroEngineerMod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void Update()
6868
Manager.Instance.Update();
6969

7070
// Keyboard shortcut for opening the UI
71-
if (_enableKeybinding.Value &&
71+
if ((_enableKeybinding?.Value ?? false) &&
7272
(_keybind1.Value != KeyCode.None ? Input.GetKey(_keybind1.Value) : true) &&
7373
(_keybind2.Value != KeyCode.None ? Input.GetKeyDown(_keybind2.Value) : true))
7474
{

MicroEngineerProject/Other/Notes.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*
44
* TODO
55
* - update UITK for 0.1.5
6-
* - add setting to enable/disable keybinding
76
*
87
*
98
*

0 commit comments

Comments
 (0)