mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +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
|
// Stop player velocity
|
||||||
this.velocity = Vec.ZERO;
|
this.velocity = Vec.ZERO;
|
||||||
} else {
|
} else {
|
||||||
final Block block = finalChunk.getBlock(position);
|
final double drag = this.onGround ?
|
||||||
final double drag = block.registry().friction();
|
finalChunk.getBlock(position).registry().friction() : 0.91;
|
||||||
|
|
||||||
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