From e0995c5536c599f291f3d703cfcbf5a4ac6f55e6 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Sun, 22 Oct 2023 00:19:21 +0900 Subject: - Fix #377 box solver freeze, due to someone making addToChatQueue fire ClientChatReceivedEvent (#430) Signed-off-by: syeyoung --- .../mod/dungeon/roomprocessor/boxpuzzle/RoomProcessorBoxSolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/src/main') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/boxpuzzle/RoomProcessorBoxSolver.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/boxpuzzle/RoomProcessorBoxSolver.java index 97a80656..1171027a 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/boxpuzzle/RoomProcessorBoxSolver.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomprocessor/boxpuzzle/RoomProcessorBoxSolver.java @@ -319,10 +319,10 @@ public class RoomProcessorBoxSolver extends GeneralRoomProcessor { if (chat.getFormattedText().toLowerCase().contains("recalc")) { if (calcDone) { calcReq = true; - ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide :::: Recalculating Route...")); + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§eDungeons Guide :::: Recalculating Route...")); } else { calcReq = true; - ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide :::: Currently Calculating Route...")); + Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("§eDungeons Guide :::: Currently Calculating Route...")); } } } -- cgit