From 2e2efb905f232d67c320b0908f514bab03b498c6 Mon Sep 17 00:00:00 2001 From: Crosby <32882447+crosby-moe@users.noreply.github.com> Date: Wed, 17 Dec 2025 04:04:40 -0500 Subject: [PATCH 1/3] hotfix hold inputs also press --- .../meteorclient/commands/commands/InputCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java index e453767910..7e019bcd7b 100644 --- a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java +++ b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java @@ -129,8 +129,10 @@ public KeypressHandler(KeyBinding key, int ticks) { @EventHandler private void onTick(TickEvent.Post event) { - if (ticks-- > 0) key.setPressed(true); - else { + if (ticks-- > 0) { + key.setPressed(true); + press(key); + } else { key.setPressed(false); MeteorClient.EVENT_BUS.unsubscribe(this); activeHandlers.remove(this); From 19db59b194058b4be6a173efbe8b78a0ac562358 Mon Sep 17 00:00:00 2001 From: Crosby <32882447+crosby-moe@users.noreply.github.com> Date: Wed, 17 Dec 2025 04:05:34 -0500 Subject: [PATCH 2/3] make `ticks` argument to `.input` optional --- .../meteorclient/commands/commands/InputCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java index 7e019bcd7b..0b907543c3 100644 --- a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java +++ b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java @@ -48,6 +48,10 @@ public InputCommand() { public void build(LiteralArgumentBuilder builder) { for (Pair keyBinding : holdKeys) { builder.then(literal(keyBinding.getSecond()) + .executes(context -> { + activeHandlers.add(new KeypressHandler(keyBinding.getFirst(), 1)); + return SINGLE_SUCCESS; + }) .then(argument("ticks", IntegerArgumentType.integer(1)) .executes(context -> { activeHandlers.add(new KeypressHandler(keyBinding.getFirst(), context.getArgument("ticks", Integer.class))); From fc3b0f4ca71e17acb1bb34055718dab173033597 Mon Sep 17 00:00:00 2001 From: Wide_Cat Date: Thu, 18 Dec 2025 17:40:03 +0000 Subject: [PATCH 3/3] Only press the keybinding once instead of spamming it --- .../meteorclient/commands/commands/InputCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java index 0b907543c3..ae4fc9ad57 100644 --- a/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java +++ b/src/main/java/meteordevelopment/meteorclient/commands/commands/InputCommand.java @@ -133,9 +133,10 @@ public KeypressHandler(KeyBinding key, int ticks) { @EventHandler private void onTick(TickEvent.Post event) { + if (ticks == totalTicks) press(key); + if (ticks-- > 0) { key.setPressed(true); - press(key); } else { key.setPressed(false); MeteorClient.EVENT_BUS.unsubscribe(this);