aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 5ba3710..e917d94 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -77,7 +77,11 @@ class Events extends Feature {
this.warpBindDefault = new TextSetting("Default keybind", "Eg KEY_F", "KEY_F", "inquis_keybind_default", this, "", false)
- this.warpBind = getKeyBindFromKey(Keyboard[this.warpBindDefault.getValue()], "Warp to nearest location to burrial guess");
+ try {
+ this.warpBind = getKeyBindFromKey(Keyboard[this.warpBindDefault.getValue()], "Warp to nearest location to burrial guess");
+ } catch (e) {
+ ChatLib.chat(this.FeatureManager.messagePrefix + this.warpBindDefault.getValue() + " is an invalid keyboard key, see https://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html")
+ }
this.slayerLocationDataH = {}
this.todoE = []