From 3b9885a055f2db2216c817da1d06e2e174ab63ed Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Wed, 1 May 2024 22:53:49 +0200 Subject: [PATCH] Improved code --- .../proxy/packethandler/ChatSignaturePacketHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/raphimc/viaproxy/proxy/packethandler/ChatSignaturePacketHandler.java b/src/main/java/net/raphimc/viaproxy/proxy/packethandler/ChatSignaturePacketHandler.java index 686f426..501a04f 100644 --- a/src/main/java/net/raphimc/viaproxy/proxy/packethandler/ChatSignaturePacketHandler.java +++ b/src/main/java/net/raphimc/viaproxy/proxy/packethandler/ChatSignaturePacketHandler.java @@ -22,7 +22,6 @@ import com.viaversion.viaversion.api.minecraft.PlayerMessageSignature; import com.viaversion.viaversion.api.minecraft.signature.model.MessageMetadata; import com.viaversion.viaversion.api.minecraft.signature.storage.ChatSession1_19_3; import com.viaversion.viaversion.api.type.Type; -import com.viaversion.viaversion.api.type.types.BitSetType; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelFutureListener; @@ -76,7 +75,7 @@ public class ChatSignaturePacketHandler extends PacketHandler { newChatMessage.writeLong(salt); // salt Type.OPTIONAL_SIGNATURE_BYTES.write(newChatMessage, signature); // signature PacketTypes.writeVarInt(newChatMessage, 0); // offset - new BitSetType(20).write(newChatMessage, new BitSet(20)); // acknowledged + Type.ACKNOWLEDGED_BIT_SET.write(newChatMessage, new BitSet(20)); // acknowledged this.proxyConnection.getChannel().writeAndFlush(newChatMessage).addListener(ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE); return false;