From 1caa3e1840e51800200458b776712f38b470d772 Mon Sep 17 00:00:00 2001 From: Torui <44932079+ToruiDev@users.noreply.github.com> Date: Mon, 24 Jan 2022 20:00:02 +0100 Subject: Feature/support new flips (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added rudimentary support for the new flips * Keypress * send "clicked" command * maybe fix the ConcurrentModificationException * add synchronized to relevant pieces of code * premature optimization * change timings to 50 seconds * switched to config file * workaround for #48 * change debounce mechanism * cofl track * fix #49 * fix command not getting data serialized * . * add id on claim * unset hotkey * Apply suggestions from code review remove tab from empty line Co-authored-by: Äkwav <16632490+Ekwav@users.noreply.github.com> --- src/main/java/de/torui/coflsky/CoflSky.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/java/de/torui/coflsky/CoflSky.java') diff --git a/src/main/java/de/torui/coflsky/CoflSky.java b/src/main/java/de/torui/coflsky/CoflSky.java index 53ffe71..0191ea1 100644 --- a/src/main/java/de/torui/coflsky/CoflSky.java +++ b/src/main/java/de/torui/coflsky/CoflSky.java @@ -20,11 +20,12 @@ import net.minecraftforge.fml.relauncher.Side; public class CoflSky { public static final String MODID = "CoflSky"; - public static final String VERSION = "1.2-Alpha"; + public static final String VERSION = "1.3-Alpha"; public static WSClientWrapper Wrapper; public static KeyBinding[] keyBindings; + public static EventRegistry Events; public static final String[] webSocketURIPrefix = new String [] { "wss://sky.coflnet.com/modsocket", @@ -45,6 +46,7 @@ public class CoflSky keyBindings = new KeyBinding[] { new KeyBinding("key.replay_last.onclick", Keyboard.KEY_NONE, "SkyCofl"), + new KeyBinding("key.start_highest_bid", Keyboard.KEY_NONE, "SkyCofl") }; if(event.getSide() == Side.CLIENT) { @@ -57,8 +59,9 @@ public class CoflSky } - } - MinecraftForge.EVENT_BUS.register(new EventRegistry()); + } + Events = new EventRegistry(); + MinecraftForge.EVENT_BUS.register(Events); } -- cgit