Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 18b8666

Browse files
use the Via API correctly
1 parent 4cc3a0d commit 18b8666

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/main/java/de/florianmichael/vialoadingbase/platform/providers/VLBMovementTransmitterProvider.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ public void sendPlayer(UserConnection userConnection) {
4747
final MovementTracker movementTracker = userConnection.get(MovementTracker.class);
4848
movementTracker.incrementIdlePacket();
4949

50-
userConnection.getChannel().eventLoop().submit(() -> { // Sync
51-
final PacketWrapper c03 = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, userConnection);
52-
c03.write(Type.BOOLEAN, movementTracker.isGround());
53-
54-
try {
55-
c03.sendToServer(Protocol1_9To1_8.class);
56-
} catch (Exception e) {
57-
e.printStackTrace();
58-
}
59-
});
50+
final PacketWrapper c03 = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, userConnection);
51+
c03.write(Type.BOOLEAN, movementTracker.isGround());
52+
53+
try {
54+
c03.scheduleSendToServer(Protocol1_9To1_8.class);
55+
} catch (Exception e) {
56+
e.printStackTrace();
57+
}
6058
}
6159
}

0 commit comments

Comments
 (0)