From 7d03831ba87f839d2877681f4c64195ac9dabb4f Mon Sep 17 00:00:00 2001 From: KennyTV Date: Mon, 31 May 2021 23:18:56 +0200 Subject: [PATCH] Update VV usage --- .../protocol1_11_1to1_12/packets/BlockItemPackets1_12.java | 4 ++-- .../protocol1_12_2to1_13/packets/EntityPackets1_13.java | 2 +- .../protocol1_12_2to1_13/packets/PlayerPacket1_13.java | 2 +- .../protocol1_13_2to1_14/packets/EntityPackets1_14.java | 2 +- .../protocol1_15_2to1_16/packets/EntityPackets1_16.java | 4 ++-- gradle/libs.versions.toml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java index 6b1b509e..542d5482 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_11_1to1_12/packets/BlockItemPackets1_12.java @@ -151,9 +151,9 @@ public class BlockItemPackets1_12 extends LegacyBlockItemRewriter { for (String value : suggestions) { response.write(Type.STRING, value); } - response.send(Protocol1_12_2To1_13.class); + response.scheduleSend(Protocol1_12_2To1_13.class); storage.lastRequest = null; return; } diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_13_2to1_14/packets/EntityPackets1_14.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_13_2to1_14/packets/EntityPackets1_14.java index 932ec9d9..eec143f7 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_13_2to1_14/packets/EntityPackets1_14.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_13_2to1_14/packets/EntityPackets1_14.java @@ -91,7 +91,7 @@ public class EntityPackets1_14 extends LegacyEntityRewriter { spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 0)); // X spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 1)); // Y spawnLightningPacket.write(Type.DOUBLE, wrapper.get(Type.DOUBLE, 2)); // Z - spawnLightningPacket.send(Protocol1_15_2To1_16.class, true, true); + spawnLightningPacket.send(Protocol1_15_2To1_16.class); } }); handler(getSpawnTrackerWithDataHandler(Entity1_16Types.FALLING_BLOCK)); @@ -119,7 +119,7 @@ public class EntityPackets1_16 extends EntityRewriter { packet.write(Type.LONG, 0L); packet.write(Type.UNSIGNED_BYTE, (short) 0); packet.write(Type.STRING, "default"); - packet.send(Protocol1_15_2To1_16.class, true, true); + packet.send(Protocol1_15_2To1_16.class); } clientWorld.setEnvironment(dimension); diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5f6b1696..a6bf826f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ metadata.format.version = "1.0" [versions] # ViaVersion -viaver = "4.0.0-1.17-pre1-SNAPSHOT" +viaver = "4.0.0-1.17-pre2-SNAPSHOT" # Common provided netty = "4.0.20.Final"