From 5df0dacf9211b7acaba7bc87419f801f308213ff Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 7 Oct 2021 16:56:22 +0200 Subject: [PATCH] 21w40a --- build.gradle.kts | 2 +- .../Protocol1_17_1To1_18.java | 15 ++++---- .../packets/BlockItemPackets1_18.java | 37 ++++++++++--------- .../packets/EntityPackets1_18.java | 24 +++++++----- gradle/libs.versions.toml | 2 +- 5 files changed, 44 insertions(+), 36 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c9a8186f..10517456 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { allprojects { group = "com.viaversion" - version = "4.1.0-21w39a-SNAPSHOT" + version = "4.1.0-21w40a-SNAPSHOT" description = "Allow older clients to join newer server versions." } diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/Protocol1_17_1To1_18.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/Protocol1_17_1To1_18.java index eb9652d6..18f12eba 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/Protocol1_17_1To1_18.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_17_1to1_18/Protocol1_17_1To1_18.java @@ -28,17 +28,18 @@ import com.viaversion.viaversion.api.minecraft.entities.Entity1_17Types; import com.viaversion.viaversion.data.entity.EntityTrackerBase; import com.viaversion.viaversion.protocols.protocol1_17_1to1_17.ClientboundPackets1_17_1; import com.viaversion.viaversion.protocols.protocol1_17to1_16_4.ServerboundPackets1_17; +import com.viaversion.viaversion.protocols.protocol1_18to1_17_1.ClientboundPackets1_18; import com.viaversion.viaversion.protocols.protocol1_18to1_17_1.Protocol1_18To1_17_1; import com.viaversion.viaversion.rewriter.TagRewriter; -public final class Protocol1_17_1To1_18 extends BackwardsProtocol { +public final class Protocol1_17_1To1_18 extends BackwardsProtocol { private static final BackwardsMappings MAPPINGS = new BackwardsMappings(); private final EntityPackets1_18 entityRewriter = new EntityPackets1_18(this); private final BlockItemPackets1_18 itemRewriter = new BlockItemPackets1_18(this, null); //TODO translatablerewriter public Protocol1_17_1To1_18() { - super(ClientboundPackets1_17_1.class, ClientboundPackets1_17_1.class, ServerboundPackets1_17.class, ServerboundPackets1_17.class); + super(ClientboundPackets1_18.class, ClientboundPackets1_17_1.class, ServerboundPackets1_17.class, ServerboundPackets1_17.class); } @Override @@ -49,14 +50,14 @@ public final class Protocol1_17_1To1_18 extends BackwardsProtocol handleItemToServer(wrapper.passthrough(Type.FLAT_VAR_INT_ITEM))); @@ -83,7 +84,7 @@ public final class BlockItemPackets1_18 extends ItemRewriter { @@ -184,5 +185,7 @@ public final class BlockItemPackets1_18 extends ItemRewriter { @@ -84,7 +88,7 @@ public final class EntityPackets1_18 extends EntityRewriter