Synchronize entity position when removing vehicle

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-09-20 22:43:54 +02:00
parent 2e017c3f0e
commit d8abdef1da
1 changed files with 1 additions and 0 deletions

View File

@ -895,6 +895,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
if (!passengers.remove(entity)) return;
entity.vehicle = null;
sendPacketToViewersAndSelf(getPassengersPacket());
entity.synchronizePosition(false);
if (entity instanceof Player) {
Player player = (Player) entity;
player.getPlayerConnection().sendPacket(new PlayerPositionAndLookPacket(player.getPosition(),