mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Synchronize entity position when removing vehicle
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
2e017c3f0e
commit
d8abdef1da
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user