aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuuxel <6596629+Juuxel@users.noreply.github.com>2021-02-27 18:06:13 +0200
committerJuuxel <6596629+Juuxel@users.noreply.github.com>2021-02-27 18:06:13 +0200
commit9f7d3f8d513c4848e5955980705996f0f23ba84c (patch)
tree36d7c9f7232fc7d97c23f3243858ce503786e72d /src
parent9bd0e4829bd08a5ed0860aafc6288290ceac5eae (diff)
downloadLibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.tar.gz
LibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.tar.bz2
LibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.zip
Add catch block to ScreenNetworking message handling
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java b/src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java
index cd2651a..b20fcec 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java
@@ -95,6 +95,8 @@ public class ScreenNetworkingImpl implements ScreenNetworking {
executor.execute(() -> {
try {
receiver.onMessage(buf);
+ } catch (Exception e) {
+ LOGGER.error("Error handling screen message {} for {} on side {}", messageId, screenHandler, networking.side, e);
} finally {
buf.release();
}