Use 0.91 drag when not on ground

This commit is contained in:
TheMode 2021-07-28 09:20:28 +02:00
parent 2e406e5c46
commit bf53313c3e

View File

@ -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)