修复空中冲刺显示耐力条的bug

This commit is contained in:
Atsuishio 2025-04-11 02:46:03 +08:00 committed by Light_Quanta
parent 5bb1887fec
commit 3d079dbf47
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -331,7 +331,7 @@ public class ClientEventHandler {
exhaustion = false;
}
if (ModKeyMappings.BREATH.isDown() || 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);