From 94f6b62a28e004df92be89c7ea66dac6ddf8e011 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 5 Dec 2024 20:24:33 +0100 Subject: [PATCH] Make "has left the chat room" sent to the correct channel --- src/main/java/eu/m724/tweaks/chat/ChatManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/m724/tweaks/chat/ChatManager.java b/src/main/java/eu/m724/tweaks/chat/ChatManager.java index 960d896..29c2e78 100644 --- a/src/main/java/eu/m724/tweaks/chat/ChatManager.java +++ b/src/main/java/eu/m724/tweaks/chat/ChatManager.java @@ -95,7 +95,7 @@ public class ChatManager { playerMap.put(player, chatRoom); chatRoom.players.add(player); - chatRoom.broadcast( + oldRoom.broadcast( new ComponentBuilder() .append(ChatFormatUtils.chatRoomPrefixShort(chatRoom)) .append(ChatFormatUtils.formatPlayer(player))