From 4e268d2aea4e4e26a498405b5bd505e03f6b2082 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 4 Feb 2023 21:22:11 +0900 Subject: - Fix keybind not triggering Signed-off-by: syeyoung --- .../dungeonsguide/mod/features/impl/secret/FeatureBloodRush.java | 2 +- .../dungeonsguide/mod/features/impl/secret/FeatureFreezePathfind.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureBloodRush.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureBloodRush.java index a9336b85..301a1955 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureBloodRush.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureBloodRush.java @@ -35,7 +35,7 @@ public class FeatureBloodRush extends SimpleFeature { addParameter("key", new FeatureParameter("key", "Key", "Press to toggle Blood Rush", Keyboard.KEY_NONE, TCKeybind.INSTANCE)); } - @DGEventHandler + @DGEventHandler(ignoreDisabled = true) public void onKeybindPress(KeyBindPressedEvent keyBindPressedEvent) { if (keyBindPressedEvent.getKey() == this.getParameter("key").getValue()) { setEnabled(!isEnabled()); diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureFreezePathfind.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureFreezePathfind.java index 6debe299..90b80840 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureFreezePathfind.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/FeatureFreezePathfind.java @@ -34,7 +34,7 @@ public class FeatureFreezePathfind extends SimpleFeature { addParameter("key", new FeatureParameter("key", "Key", "Press to toggle freeze pathfind", Keyboard.KEY_NONE, TCKeybind.INSTANCE)); } - @DGEventHandler + @DGEventHandler(ignoreDisabled = true) public void onKeybindPress(KeyBindPressedEvent keyBindPressedEvent) { if (keyBindPressedEvent.getKey() == this.getParameter("key").getValue()) { setEnabled(!isEnabled()); -- cgit