Fixed velocity synchronization

This commit is contained in:
Felix Cravic 2020-05-24 22:24:59 +02:00
parent e26ee1380a
commit ae53cca19d

View File

@ -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;