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); }