From 9f7d3f8d513c4848e5955980705996f0f23ba84c Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sat, 27 Feb 2021 18:06:13 +0200 Subject: Add catch block to ScreenNetworking message handling --- .../java/io/github/cottonmc/cotton/gui/impl/ScreenNetworkingImpl.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/io') 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(); } -- cgit