#3759: Remove unnecessary protocol version check for UnsignedClientCommand

This commit is contained in:
Outfluencer 2024-11-17 11:44:17 +11:00 committed by md_5
parent 7a42f12716
commit 81b118a8ba
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -21,7 +21,7 @@ public class UnsignedClientCommand extends DefinedPacket
@Override @Override
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{ {
command = readString( buf, ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 ) ? 32767 : 256 ); command = readString( buf );
} }
@Override @Override