From d4cc7ec7297cf274d67ac35267e9e5be8d03aa2c Mon Sep 17 00:00:00 2001 From: Intelli Date: Sat, 6 Jul 2024 12:07:31 -0600 Subject: [PATCH] Hide item serialization errors unless using development branch --- src/main/java/net/coreprotect/utility/Util.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/coreprotect/utility/Util.java b/src/main/java/net/coreprotect/utility/Util.java index 644458f..fc3f5c3 100755 --- a/src/main/java/net/coreprotect/utility/Util.java +++ b/src/main/java/net/coreprotect/utility/Util.java @@ -579,8 +579,10 @@ public class Util extends Queue { bos.close(); result = bos.toByteArray(); } - catch (Exception e) { - e.printStackTrace(); + catch (Exception e) { // only display exception on development branch + if (!ConfigHandler.EDITION_BRANCH.contains("-dev")) { + e.printStackTrace(); + } } return result;