Skip to content

Commit

Permalink
More correct ComponentHolder versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
hevav committed Dec 25, 2023
1 parent 41f52c2 commit b2396be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ public void createChatPacket(PreparedPacket packet, String text) {
LimboFilter.getSerializer().deserialize(text)
), LegacyChat.CHAT_TYPE, null
), ProtocolVersion.MINECRAFT_1_16, ProtocolVersion.MINECRAFT_1_18_2)
.prepare(new SystemChat(
new ComponentHolder(ProtocolVersion.MAXIMUM_VERSION, LimboFilter.getSerializer().deserialize(text)), ChatType.SYSTEM
.prepare(version -> new SystemChat(
new ComponentHolder(version, LimboFilter.getSerializer().deserialize(text)), ChatType.SYSTEM
), ProtocolVersion.MINECRAFT_1_19);
}

Expand Down

0 comments on commit b2396be

Please sign in to comment.