Skip to content

Commit

Permalink
Set base protocol for 3d shareware->1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Jul 16, 2024
1 parent 568d39d commit 33ff7c4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33ff7c4

Please sign in to comment.