From c611176abbe698bac03e81bd25cfa108f65eab66 Mon Sep 17 00:00:00 2001 From: USS_Shenzhou <57312492+USS-Shenzhou@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:05:10 +0800 Subject: [PATCH] use consumeClick instead of isDown in InputEvent listener (#4) --- src/main/java/org/teacon/signin/client/Hotkey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/teacon/signin/client/Hotkey.java b/src/main/java/org/teacon/signin/client/Hotkey.java index fd87886..eba2294 100644 --- a/src/main/java/org/teacon/signin/client/Hotkey.java +++ b/src/main/java/org/teacon/signin/client/Hotkey.java @@ -17,7 +17,7 @@ public final class Hotkey { @SubscribeEvent public static void keyTyped(InputEvent.Key event) { - if (SignMeUpClient.keyOpenMap != null && SignMeUpClient.keyOpenMap.isDown()) { + if (SignMeUpClient.keyOpenMap != null && SignMeUpClient.keyOpenMap.consumeClick()) { Minecraft mc = Minecraft.getInstance(); if (mc.player != null) { final Vec3 position = mc.player.position();