diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-09-18 11:20:32 +0200 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-09-18 11:20:32 +0200 |
commit | ca5616226465ba65011f94d15d532442ecac6777 (patch) | |
tree | a67606c6393efd6ff2e24cf02d4988a4ac67924d /src/main/java/de/hype/bbsentials/client/BBsentials.java | |
parent | 47c11dadcd55febd98325a67825bb705d3c02f6c (diff) | |
download | BBsentials-ca5616226465ba65011f94d15d532442ecac6777.tar.gz BBsentials-ca5616226465ba65011f94d15d532442ecac6777.tar.bz2 BBsentials-ca5616226465ba65011f94d15d532442ecac6777.zip |
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.
Diffstat (limited to 'src/main/java/de/hype/bbsentials/client/BBsentials.java')
-rw-r--r-- | src/main/java/de/hype/bbsentials/client/BBsentials.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |