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