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
1 changed files with 2 additions and 0 deletions

View File

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