mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 22:47:49 +01:00
commit
9ec257ed3d
@ -556,8 +556,9 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
|||||||
// Stop player velocity
|
// Stop player velocity
|
||||||
this.velocity = Vec.ZERO;
|
this.velocity = Vec.ZERO;
|
||||||
} else {
|
} else {
|
||||||
|
final double airDrag = this instanceof LivingEntity ? 0.91 : 0.98;
|
||||||
final double drag = this.onGround ?
|
final double drag = this.onGround ?
|
||||||
finalChunk.getBlock(position).registry().friction() : 0.91;
|
finalChunk.getBlock(position).registry().friction() : airDrag;
|
||||||
this.velocity = newVelocity
|
this.velocity = newVelocity
|
||||||
// Convert from block/tick to block/sec
|
// Convert from block/tick to block/sec
|
||||||
.mul(tps)
|
.mul(tps)
|
||||||
|
Loading…
Reference in New Issue
Block a user