diff options
author | Florian Rinke <develop@torui.de> | 2021-11-05 18:05:04 +0100 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-11-05 19:50:23 +0100 |
commit | 66b0ac1a6f81dbad55c33e361a310b9560497997 (patch) | |
tree | 52e9472bab107866472bcd2f4101b38f5a552ceb /src/main/java | |
parent | 161c01a2be916670c5bb4730760966f78e35afd0 (diff) | |
download | COFL-66b0ac1a6f81dbad55c33e361a310b9560497997.tar.gz COFL-66b0ac1a6f81dbad55c33e361a310b9560497997.tar.bz2 COFL-66b0ac1a6f81dbad55c33e361a310b9560497997.zip |
This should reenable hotkeys
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/torui/coflsky/CoflSky.java | 4 | ||||
-rw-r--r-- | src/main/java/de/torui/coflsky/EventRegistry.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSky.java b/src/main/java/de/torui/coflsky/CoflSky.java index 69cd136..53ffe71 100644 --- a/src/main/java/de/torui/coflsky/CoflSky.java +++ b/src/main/java/de/torui/coflsky/CoflSky.java @@ -44,7 +44,7 @@ public class CoflSky CoflSky.Wrapper = new WSClientWrapper(webSocketURIPrefix); keyBindings = new KeyBinding[] { - new KeyBinding("key.replay_last.onclick", Keyboard.KEY_R, "SkyCofl"), + new KeyBinding("key.replay_last.onclick", Keyboard.KEY_NONE, "SkyCofl"), }; if(event.getSide() == Side.CLIENT) { @@ -53,7 +53,7 @@ public class CoflSky for (int i = 0; i < keyBindings.length; ++i) { - //ClientRegistry.registerKeyBinding(keyBindings[i]); + ClientRegistry.registerKeyBinding(keyBindings[i]); } diff --git a/src/main/java/de/torui/coflsky/EventRegistry.java b/src/main/java/de/torui/coflsky/EventRegistry.java index f47d0a1..c68836f 100644 --- a/src/main/java/de/torui/coflsky/EventRegistry.java +++ b/src/main/java/de/torui/coflsky/EventRegistry.java @@ -54,7 +54,7 @@ public class EventRegistry{ @SideOnly(Side.CLIENT) - //@SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true) + @SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true) public void onEvent(KeyInputEvent event) { if(CoflSky.keyBindings[0].isPressed()) { |