Skip to content

Commit

Permalink
use consumeClick instead of isDown in InputEvent listener (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
USS-Shenzhou authored Sep 21, 2023
1 parent 4128c38 commit c611176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/teacon/signin/client/Hotkey.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c611176

Please sign in to comment.