mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-17 05:31:23 +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.setX(velocity.getX() * drag);
|
||||||
velocity.setZ(velocity.getZ() * drag);
|
velocity.setZ(velocity.getZ() * drag);
|
||||||
|
|
||||||
|
sendSynchronization();
|
||||||
|
|
||||||
if (shouldSendVelocityUpdate(time)) {
|
if (shouldSendVelocityUpdate(time)) {
|
||||||
sendPacketToViewers(getVelocityPacket());
|
sendPacketToViewers(getVelocityPacket());
|
||||||
lastVelocityUpdateTime = time;
|
lastVelocityUpdateTime = time;
|
||||||
|
Loading…
Reference in New Issue
Block a user