修改战术冲刺的逻辑

This commit is contained in:
17146 2025-04-18 23:29:34 +08:00
parent 79743d316c
commit 45386b0fd8

View file

@ -342,7 +342,7 @@ public class ClientEventHandler {
exhaustion = false;
}
if ((ModKeyMappings.BREATH.isDown() && zoom) || (tacticalSprint)) {
if ((ModKeyMappings.BREATH.isDown() && zoom) || tacticalSprint) {
switchTime = Math.min(switchTime + 0.65, 5);
} else if (switchTime > 0 && stamina == 0) {
switchTime = Math.max(switchTime - 0.15, 0);
@ -352,7 +352,7 @@ public class ClientEventHandler {
tacticalSprint = false;
}
if (tacticalSprint && player.onGround() || player.jumping) {
if (tacticalSprint && (player.onGround() || player.jumping)) {
PacketDistributor.sendToServer(new TacticalSprintMessage(true));
} else {
PacketDistributor.sendToServer(new TacticalSprintMessage(false));