aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-11-05 18:05:04 +0100
committerFlorian Rinke <develop@torui.de>2021-11-05 19:50:23 +0100
commit66b0ac1a6f81dbad55c33e361a310b9560497997 (patch)
tree52e9472bab107866472bcd2f4101b38f5a552ceb
parent161c01a2be916670c5bb4730760966f78e35afd0 (diff)
downloadCOFL-66b0ac1a6f81dbad55c33e361a310b9560497997.tar.gz
COFL-66b0ac1a6f81dbad55c33e361a310b9560497997.tar.bz2
COFL-66b0ac1a6f81dbad55c33e361a310b9560497997.zip
This should reenable hotkeys
-rw-r--r--src/main/java/de/torui/coflsky/CoflSky.java4
-rw-r--r--src/main/java/de/torui/coflsky/EventRegistry.java2
-rw-r--r--src/main/resources/assets/coflsky/lang/en_US.lang2
3 files changed, 4 insertions, 4 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()) {
diff --git a/src/main/resources/assets/coflsky/lang/en_US.lang b/src/main/resources/assets/coflsky/lang/en_US.lang
index eb7ebad..404927d 100644
--- a/src/main/resources/assets/coflsky/lang/en_US.lang
+++ b/src/main/resources/assets/coflsky/lang/en_US.lang
@@ -1,2 +1,2 @@
key.coflskycategory.name=Coflnet Skyblock
-key.replay_last.onclick=Activate last Coflnet message \ No newline at end of file
+key.replay_last.onclick=Activate last Coflnet message [BANNABLE] \ No newline at end of file