Skip to content

Commit

Permalink
properly apply vanilla cap to chat packets
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicboy committed Jan 23, 2025
1 parent 7392cd6 commit 371e686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public String toString() {

@Override
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
message = ProtocolUtils.readString(buf);
message = ProtocolUtils.readString(buf, 256);
if (direction == ProtocolUtils.Direction.CLIENTBOUND
&& version.noLessThan(ProtocolVersion.MINECRAFT_1_8)) {
type = buf.readByte();
Expand Down

0 comments on commit 371e686

Please sign in to comment.