From 33ff7c444d8cbea7796f67622d29723f75d1b98c Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Wed, 17 Jul 2024 00:35:53 +0200 Subject: [PATCH] Set base protocol for 3d shareware->1.14 --- .../s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/raphimc/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java b/src/main/java/net/raphimc/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java index 0f95a5a..03f5392 100644 --- a/src/main/java/net/raphimc/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java +++ b/src/main/java/net/raphimc/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java @@ -20,9 +20,11 @@ import com.viaversion.viabackwards.api.BackwardsProtocol; import com.viaversion.viabackwards.api.data.BackwardsMappingData; import com.viaversion.viabackwards.api.rewriters.SoundRewriter; +import com.viaversion.viaversion.api.Via; import com.viaversion.viaversion.api.connection.UserConnection; import com.viaversion.viaversion.api.minecraft.chunks.Chunk; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; +import com.viaversion.viaversion.api.protocol.version.ProtocolVersion; import com.viaversion.viaversion.api.type.Types; import com.viaversion.viaversion.api.type.types.chunk.ChunkType1_14; import com.viaversion.viaversion.protocols.v1_13_2to1_14.Protocol1_13_2To1_14; @@ -82,6 +84,7 @@ protected void registerPackets() { @Override public void init(UserConnection userConnection) { userConnection.put(new ChunkCenterTracker3D_Shareware()); + userConnection.getProtocolInfo().getPipeline().add(Via.getManager().getProtocolManager().getBaseProtocol(ProtocolVersion.v1_14)); } @Override