diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-04 21:22:11 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-04 21:22:11 +0900 |
commit | 4e268d2aea4e4e26a498405b5bd505e03f6b2082 (patch) | |
tree | 2296124a123fb5ca234643952ddb98191ddc7980 /mod/src/main/java/kr/syeyoung/dungeonsguide | |
parent | be65a7ab4a8dea563fcecbf6cdfc1d81ae646551 (diff) | |
download | Skyblock-Dungeons-Guide-4e268d2aea4e4e26a498405b5bd505e03f6b2082.tar.gz Skyblock-Dungeons-Guide-4e268d2aea4e4e26a498405b5bd505e03f6b2082.tar.bz2 Skyblock-Dungeons-Guide-4e268d2aea4e4e26a498405b5bd505e03f6b2082.zip |
- Fix keybind not triggering
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/java/kr/syeyoung/dungeonsguide')
2 files changed, 2 insertions, 2 deletions
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<Integer>("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.<Integer>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<Integer>("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.<Integer>getParameter("key").getValue()) { setEnabled(!isEnabled()); |