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