Skip to content

Commit

Permalink
Merge pull request #765 from onebeastchris/ClientBoundDisconnectPacke…
Browse files Browse the repository at this point in the history
…tFix

Read Component instead of String in ClientboundLoginDisconnectPacket
  • Loading branch information
basaigh committed Nov 1, 2023
2 parents e282423 + d52318f commit 6f53d57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public ClientboundLoginDisconnectPacket(String text) {
this(DefaultComponentSerializer.get().deserialize(text));
}

public ClientboundLoginDisconnectPacket(ByteBuf in, MinecraftCodecHelper codecHelper) throws IOException {
this.reason = DefaultComponentSerializer.get().deserialize(codecHelper.readString(in));
public ClientboundLoginDisconnectPacket(ByteBuf in, MinecraftCodecHelper helper) throws IOException {
this.reason = helper.readComponent(in);
}

@Override
Expand Down

1 comment on commit 6f53d57

@Konicai
Copy link
Member

@Konicai Konicai commented on 6f53d57 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squash :(

Please sign in to comment.