File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed
src/main/java/de/florianmichael/vialoadingbase/platform/providers Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ repositories {
2828
2929dependencies {
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"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44}
55
66archivesBaseName = " ViaLoadingBase"
7- version = " 4.4.8 "
7+ version = " 4.5.0 "
88group = " de.florianmichael"
99
1010repositories {
3333
3434dependencies {
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" )
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments