Skip to content

Commit 2aa8856

Browse files
Bump version
1 parent 154307b commit 2aa8856

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ repositories {
2828
2929
dependencies {
3030
// https://ci.viaversion.com/
31-
implementation "com.viaversion:viaversion:4.7.0-23w16a-SNAPSHOT"
32-
implementation "com.viaversion:viabackwards:4.7.0-23w16a-SNAPSHOT"
31+
implementation "com.viaversion:viaversion:4.7.0-23w17a-SNAPSHOT"
32+
implementation "com.viaversion:viabackwards:4.7.0-23w17a-SNAPSHOT"
3333
implementation "com.viaversion:viarewind-core:2.0.4-SNAPSHOT"
3434
3535
implementation "org.yaml:snakeyaml:2.0"
3636
37-
implementation "com.github.FlorianMichael:ViaLoadingBase:4.4.8" // https://jitpack.io/#FlorianMichael/ViaLoadingBase
37+
implementation "com.github.FlorianMichael:ViaLoadingBase:4.5.0" // https://jitpack.io/#FlorianMichael/ViaLoadingBase
3838
3939
// You also need Netty, Guava and Log4j in your class path, but they should be there if your project is based on Minecraft.
4040
implementation "com.google.guava:guava:31.1-jre"

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
archivesBaseName = "ViaLoadingBase"
7-
version = "4.4.8"
7+
version = "4.5.0"
88
group = "de.florianmichael"
99

1010
repositories {
@@ -33,8 +33,8 @@ java {
3333

3434
dependencies {
3535
// Via Version
36-
compileOnly("com.viaversion:viaversion:4.7.0-23w13a-SNAPSHOT")
37-
compileOnly("com.viaversion:viabackwards-common:4.7.0-23w13a-SNAPSHOT")
36+
compileOnly("com.viaversion:viaversion:4.7.0-23w17a-SNAPSHOT")
37+
compileOnly("com.viaversion:viabackwards-common:4.7.0-23w17a-SNAPSHOT")
3838
compileOnly("com.viaversion:viarewind-core:2.0.4-SNAPSHOT")
3939

4040
compileOnly("org.yaml:snakeyaml:2.0")

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ public void sendPlayer(UserConnection userConnection) {
4444

4545
final MovementTracker movementTracker = userConnection.get(MovementTracker.class);
4646
movementTracker.incrementIdlePacket();
47-
final boolean onGround = movementTracker.isGround();
4847

49-
userConnection.getChannel().eventLoop().submit(() -> {
50-
try {
51-
final PacketWrapper playerMovement = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, userConnection);
52-
playerMovement.write(Type.BOOLEAN, onGround); // on ground
53-
playerMovement.sendToServer(Protocol1_9To1_8.class);
54-
} catch (Throwable ignored) {
55-
}
56-
});
48+
try {
49+
final PacketWrapper c03 = PacketWrapper.create(ServerboundPackets1_8.PLAYER_MOVEMENT, userConnection);
50+
c03.write(Type.BOOLEAN, movementTracker.isGround()); // on ground
51+
c03.scheduleSendToServer(Protocol1_9To1_8.class);
52+
} catch (Throwable e) {
53+
e.printStackTrace();
54+
}
5755
}
5856
}

0 commit comments

Comments
 (0)