调整奔跑状态下的行走动画运动速率

This commit is contained in:
Atsuihsio 2024-05-19 21:32:31 +08:00
parent 17bd7af286
commit ea1738a959

View file

@ -48,7 +48,11 @@ public class ClientEventHandler {
double move_speed = (float) entity.getDeltaMovement().horizontalDistanceSqr();
double on_ground;
if (entity.onGround()) {
if (entity.isSprinting()) {
on_ground = 1.2;
} else {
on_ground = 2.4;
}
} else {
on_ground = 0.001;
}