mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-16 21:21:22 +01:00
Fixed velocity synchronization
This commit is contained in:
parent
e26ee1380a
commit
ae53cca19d
@ -325,6 +325,8 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer {
|
||||
velocity.setX(velocity.getX() * drag);
|
||||
velocity.setZ(velocity.getZ() * drag);
|
||||
|
||||
sendSynchronization();
|
||||
|
||||
if (shouldSendVelocityUpdate(time)) {
|
||||
sendPacketToViewers(getVelocityPacket());
|
||||
lastVelocityUpdateTime = time;
|
||||
|
Loading…
Reference in New Issue
Block a user