From b2396be97edd50cf540a82931dee556d95849cdf Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Tue, 26 Dec 2023 00:20:35 +0300 Subject: [PATCH] More correct ComponentHolder versioning --- .../java/net/elytrium/limbofilter/cache/CachedPackets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/elytrium/limbofilter/cache/CachedPackets.java b/src/main/java/net/elytrium/limbofilter/cache/CachedPackets.java index 2d190e0..3d38ad6 100644 --- a/src/main/java/net/elytrium/limbofilter/cache/CachedPackets.java +++ b/src/main/java/net/elytrium/limbofilter/cache/CachedPackets.java @@ -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); }