From a506b21f5649abe5bcac12b573cdc430398cf592 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 3 Feb 2023 12:13:30 +0100 Subject: [PATCH] Don't load mappings in 1.19.4 protocol --- .../Protocol1_19_3To1_19_4.java | 28 +++++++++++-------- .../EntityPackets1_19_4.java | 2 +- gradle/libs.versions.toml | 2 +- 3 files changed, 19 insertions(+), 13 deletions(-) rename common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_3to1_19_4/{data => packets}/EntityPackets1_19_4.java (99%) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_3to1_19_4/Protocol1_19_3To1_19_4.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_3to1_19_4/Protocol1_19_3To1_19_4.java index 726d7268..9806f2ca 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_3to1_19_4/Protocol1_19_3To1_19_4.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_3to1_19_4/Protocol1_19_3To1_19_4.java @@ -17,24 +17,22 @@ */ package com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4; -import com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4.data.EntityPackets1_19_4; +import com.viaversion.viabackwards.api.BackwardsProtocol; +import com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4.packets.EntityPackets1_19_4; import com.viaversion.viaversion.api.connection.UserConnection; -import com.viaversion.viaversion.api.data.MappingData; -import com.viaversion.viaversion.api.data.MappingDataBase; import com.viaversion.viaversion.api.minecraft.entities.Entity1_19_3Types; -import com.viaversion.viaversion.api.protocol.AbstractProtocol; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.data.entity.EntityTrackerBase; import com.viaversion.viaversion.protocols.protocol1_19_3to1_19_1.ClientboundPackets1_19_3; +import com.viaversion.viaversion.protocols.protocol1_19_3to1_19_1.Protocol1_19_3To1_19_1; import com.viaversion.viaversion.protocols.protocol1_19_3to1_19_1.ServerboundPackets1_19_3; import com.viaversion.viaversion.protocols.protocol1_19_4to1_19_3.ClientboundPackets1_19_4; import com.viaversion.viaversion.protocols.protocol1_19_4to1_19_3.ServerboundPackets1_19_4; import com.viaversion.viaversion.rewriter.CommandRewriter; -public final class Protocol1_19_3To1_19_4 extends AbstractProtocol { +public final class Protocol1_19_3To1_19_4 extends BackwardsProtocol { - private static final MappingData MAPPINGS = new MappingDataBase("1.19.3", "1.19.3"); private final EntityPackets1_19_4 entityRewriter = new EntityPackets1_19_4(this); public Protocol1_19_3To1_19_4() { @@ -44,6 +42,9 @@ public final class Protocol1_19_3To1_19_4 extends AbstractProtocol { + }); + entityRewriter.register(); final CommandRewriter commandRewriter = new CommandRewriter(this) { @@ -55,6 +56,16 @@ public final class Protocol1_19_3To1_19_4 extends AbstractProtocol. */ -package com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4.data; +package com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4.packets; import com.viaversion.viabackwards.protocol.protocol1_19_3to1_19_4.Protocol1_19_3To1_19_4; import com.viaversion.viaversion.api.minecraft.entities.Entity1_19_3Types; diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7c9858e6..92eecf12 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ metadata.format.version = "1.1" [versions] # ViaVersion -viaver = "4.6.0-23w03a-SNAPSHOT" +viaver = "4.6.0-23w05a-SNAPSHOT" # Common provided netty = "4.0.20.Final"