From 3c650ffac26c93ef64caf71741728742dbd0991c Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 3 Mar 2022 16:49:25 +1300 Subject: [PATCH] Print what the cached file said --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 9d10d3ae..12f00223 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -807,9 +807,9 @@ public class DisguiseUtilities { return new Disguise[0]; } - try { - String cached; + String cached = null; + try { try (FileInputStream input = new FileInputStream(disguiseFile); InputStreamReader inputReader = new InputStreamReader(input, StandardCharsets.UTF_8); BufferedReader reader = new BufferedReader(inputReader)) { @@ -850,7 +850,7 @@ public class DisguiseUtilities { return disguises; } catch (Throwable e) { - getLogger().severe("Malformed disguise for " + entityUUID); + getLogger().severe("Malformed disguise for " + entityUUID + "(" + cached + ")"); e.printStackTrace(); }