aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}