Entity gravity fixed 2

This commit is contained in:
Felix Cravic 2020-11-26 22:29:06 +01:00
parent 3bc90fffd9
commit fe568abe70

View File

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