mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-26 06:24:54 +02: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