修复耐力bug
This commit is contained in:
parent
083e233624
commit
4183590fd4
2 changed files with 2 additions and 5 deletions
|
@ -203,9 +203,6 @@ public class ClickHandler {
|
|||
|
||||
if (key == Minecraft.getInstance().options.keyJump.getKey().getValue()) {
|
||||
handleDoubleJump(player);
|
||||
if (player.onGround()) {
|
||||
stamina += 5;
|
||||
}
|
||||
}
|
||||
|
||||
if (key == ModKeyMappings.CONFIG.getKey().getValue() && ModKeyMappings.CONFIG.getKeyModifier().isActive(KeyConflictContext.IN_GAME)) {
|
||||
|
|
|
@ -305,7 +305,7 @@ public class ClientEventHandler {
|
|||
return;
|
||||
}
|
||||
|
||||
tacticalSprint = !exhaustion && !zoom && isMoving() && player.isSprinting() && player.getVehicle() == null && player.onGround() && !player.getAbilities().flying;
|
||||
tacticalSprint = !exhaustion && !zoom && isMoving() && player.isSprinting() && player.getVehicle() == null && !player.getAbilities().flying;
|
||||
|
||||
ItemStack stack = player.getMainHandItem();
|
||||
|
||||
|
@ -1109,7 +1109,7 @@ public class ClientEventHandler {
|
|||
}
|
||||
}
|
||||
|
||||
if (isMoving()) {
|
||||
if (isMoving() && !entity.isSprinting()) {
|
||||
moveYTime += 1.2 * onGround * times * moveSpeed;
|
||||
moveXTime += 1.2 * onGround * times * moveSpeed;
|
||||
moveFadeTime = Mth.lerp(0.13 * times, moveFadeTime, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue