调整奔跑状态下的行走动画运动速率
This commit is contained in:
parent
17bd7af286
commit
ea1738a959
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ public class ClientEventHandler {
|
|||
double move_speed = (float) entity.getDeltaMovement().horizontalDistanceSqr();
|
||||
double on_ground;
|
||||
if (entity.onGround()) {
|
||||
on_ground = 2.4;
|
||||
if (entity.isSprinting()) {
|
||||
on_ground = 1.2;
|
||||
} else {
|
||||
on_ground = 2.4;
|
||||
}
|
||||
} else {
|
||||
on_ground = 0.001;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue