From ca5616226465ba65011f94d15d532442ecac6777 Mon Sep 17 00:00:00 2001 From: hackthetime Date: Mon, 18 Sep 2023 11:20:32 +0200 Subject: fixed mining eents ch block not affeting ch events added chchest items mod menu code to use that config threaded the message execution to put lessload on the main thread. used the execution service for it. --- src/main/java/de/hype/bbsentials/client/BBsentials.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/hype/bbsentials/client/BBsentials.java') diff --git a/src/main/java/de/hype/bbsentials/client/BBsentials.java b/src/main/java/de/hype/bbsentials/client/BBsentials.java index 6641c10..70384f6 100644 --- a/src/main/java/de/hype/bbsentials/client/BBsentials.java +++ b/src/main/java/de/hype/bbsentials/client/BBsentials.java @@ -219,7 +219,7 @@ public class BBsentials implements ClientModInitializer { bbthread = new Thread(() -> { bbserver = new BBsentialConnection(); coms = new CommandsOLD(); - bbserver.setMessageReceivedCallback(message -> bbserver.onMessageReceived(message)); + bbserver.setMessageReceivedCallback(message -> executionService.execute(()->bbserver.onMessageReceived(message))); if (beta) { bbserver.connect(config.getBBServerURL(), 5011); } -- cgit