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