diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2021-02-27 18:06:13 +0200 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2021-02-27 18:06:13 +0200 |
commit | 9f7d3f8d513c4848e5955980705996f0f23ba84c (patch) | |
tree | 36d7c9f7232fc7d97c23f3243858ce503786e72d | |
parent | 9bd0e4829bd08a5ed0860aafc6288290ceac5eae (diff) | |
download | LibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.tar.gz LibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.tar.bz2 LibGui-9f7d3f8d513c4848e5955980705996f0f23ba84c.zip |
Add catch block to ScreenNetworking message handling
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java | 2 |
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(); } |