Passenger entities should not send velocity packets

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-21 10:37:36 +02:00
parent ccbbf6b512
commit e43d001076

View File

@ -469,6 +469,8 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
return; return;
} }
if (vehicle != null) return;
final boolean noGravity = hasNoGravity(); final boolean noGravity = hasNoGravity();
final boolean hasVelocity = hasVelocity(); final boolean hasVelocity = hasVelocity();
if (!hasVelocity && noGravity) { if (!hasVelocity && noGravity) {