mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-09 13:19:05 +01:00
Entity gravity fixed 2
This commit is contained in:
parent
3bc90fffd9
commit
fe568abe70
@ -454,8 +454,7 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
|
||||
this.lastUpdate = time;
|
||||
|
||||
// Velocity
|
||||
final boolean applyVelocity = (hasVelocity() && !PlayerUtils.isNettyClient(this)) ||
|
||||
(!isOnGround() && !PlayerUtils.isNettyClient(this)) ||
|
||||
final boolean applyVelocity = !PlayerUtils.isNettyClient(this) ||
|
||||
(PlayerUtils.isNettyClient(this) && hasVelocity());
|
||||
if (applyVelocity) {
|
||||
final float tps = MinecraftServer.TICK_PER_SECOND;
|
||||
|
Loading…
Reference in New Issue
Block a user