diff --git a/bungee/src/main/java/com/viaversion/viaversion/bungee/providers/BungeeMovementTransmitter.java b/bungee/src/main/java/com/viaversion/viaversion/bungee/providers/BungeeMovementTransmitter.java index 1f7441cd1..e4f4511e4 100644 --- a/bungee/src/main/java/com/viaversion/viaversion/bungee/providers/BungeeMovementTransmitter.java +++ b/bungee/src/main/java/com/viaversion/viaversion/bungee/providers/BungeeMovementTransmitter.java @@ -38,7 +38,7 @@ public class BungeeMovementTransmitter extends MovementTransmitterProvider { } public void sendPlayer(UserConnection userConnection) { - if (userConnection.getProtocolInfo().getState() == State.PLAY) { + if (userConnection.getProtocolInfo().getState() == State.PLAY && userConnection.getEntityTracker(Protocol1_9To1_8.class).clientEntityId() != -1) { PacketWrapper wrapper = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, null, userConnection); MovementTracker tracker = userConnection.get(MovementTracker.class); wrapper.write(Type.BOOLEAN, tracker.isGround()); diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_9to1_8/storage/MovementTracker.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_9to1_8/storage/MovementTracker.java index 2fdbc0f74..7b3944c11 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_9to1_8/storage/MovementTracker.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_9to1_8/storage/MovementTracker.java @@ -23,7 +23,7 @@ public class MovementTracker implements StorableObject { private static final long IDLE_PACKET_DELAY = 50L; // Update every 50ms (20tps) private static final long IDLE_PACKET_LIMIT = 20; // Max 20 ticks behind private long nextIdlePacket = 0L; - private boolean ground = true; + private boolean ground = false; public void incrementIdlePacket() { // Notify of next update diff --git a/velocity/src/main/java/com/viaversion/viaversion/velocity/providers/VelocityMovementTransmitter.java b/velocity/src/main/java/com/viaversion/viaversion/velocity/providers/VelocityMovementTransmitter.java index 1184b4ae5..f6e427691 100644 --- a/velocity/src/main/java/com/viaversion/viaversion/velocity/providers/VelocityMovementTransmitter.java +++ b/velocity/src/main/java/com/viaversion/viaversion/velocity/providers/VelocityMovementTransmitter.java @@ -38,7 +38,7 @@ public class VelocityMovementTransmitter extends MovementTransmitterProvider { } public void sendPlayer(UserConnection userConnection) { - if (userConnection.getProtocolInfo().getState() == State.PLAY) { + if (userConnection.getProtocolInfo().getState() == State.PLAY && userConnection.getEntityTracker(Protocol1_9To1_8.class).clientEntityId() != -1) { PacketWrapper wrapper = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, null, userConnection); MovementTracker tracker = userConnection.get(MovementTracker.class); wrapper.write(Type.BOOLEAN, tracker.isGround());