From 85d40a061b390248fac2ccd05095686ce256598f Mon Sep 17 00:00:00 2001 From: Vankka Date: Sat, 15 Jul 2023 22:12:40 +0300 Subject: [PATCH] Fix issue in VentureChatIntegration --- .../bukkit/integration/chat/VentureChatIntegration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/discordsrv/bukkit/integration/chat/VentureChatIntegration.java b/bukkit/src/main/java/com/discordsrv/bukkit/integration/chat/VentureChatIntegration.java index 618b6d98..5b08bd3d 100644 --- a/bukkit/src/main/java/com/discordsrv/bukkit/integration/chat/VentureChatIntegration.java +++ b/bukkit/src/main/java/com/discordsrv/bukkit/integration/chat/VentureChatIntegration.java @@ -144,7 +144,6 @@ public class VentureChatIntegration extends PluginIntegration @Override public void sendMessage(@NotNull MinecraftComponent component) { - Component comp = ComponentUtil.fromAPI(component); for (MineverseChatPlayer player : MineverseChatAPI.getMineverseChatPlayers()) { if (!player.isListening(channel.getName())) { continue; @@ -159,6 +158,7 @@ public class VentureChatIntegration extends PluginIntegration continue; } + Component comp = ComponentUtil.fromAPI(component); if (player.hasFilter() && channel.isFiltered()) { comp = comp.replaceText( TextReplacementConfig.builder()