diff --git a/common/src/main/java/com/buuz135/findme/FindMeModClient.java b/common/src/main/java/com/buuz135/findme/FindMeModClient.java index 004a4f1..8369c8d 100644 --- a/common/src/main/java/com/buuz135/findme/FindMeModClient.java +++ b/common/src/main/java/com/buuz135/findme/FindMeModClient.java @@ -49,7 +49,7 @@ private static void init() { }); ClientRawInputEvent.KEY_PRESSED.register((client, keyCode, scanCode, action, modifiers) -> { if (!lastRenderedStack.isEmpty() && client.level != null && client.level.getGameTime() - lastTooltipTime < 3) { - if (KEY.matches(keyCode, scanCode)) + if (KEY.matches(keyCode, scanCode) && action == 1) NetworkManager.sendToServer(new PositionRequestMessage(lastRenderedStack)); if (PULL_ONE.matches(keyCode, scanCode) && action == 1) NetworkManager.sendToServer(new PullItemRequestMessage(lastRenderedStack, 1));