Skip to content

Commit

Permalink
Hide item serialization errors unless using development branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jul 6, 2024
1 parent 4af9563 commit d4cc7ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/coreprotect/utility/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,10 @@ public static byte[] convertByteData(Object data) {
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;
Expand Down

0 comments on commit d4cc7ec

Please sign in to comment.