This commit is contained in:
mfnalex 2021-12-09 21:55:50 +01:00
parent 38fe08248a
commit 35f9cc880e
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<name>ChestSort</name> <name>ChestSort</name>
<url>https://www.chestsort.de</url> <url>https://www.chestsort.de</url>
<description>Allows automatic chest sorting!</description> <description>Allows automatic chest sorting!</description>
<version>12.1.2</version> <version>12.1.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>

View File

@ -31,13 +31,13 @@ public class ShulkerPacksHook {
} catch (Throwable t) { } catch (Throwable t) {
installed = false; installed = false;
ChestSortPlugin.getInstance().getLogger().severe("Error while hooking into ShulkerPacks. Try updating ShulkerPacks to the newest version."); ChestSortPlugin.getInstance().getLogger().severe("Error while hooking into ShulkerPacks. Try updating ShulkerPacks to the newest version.");
t.printStackTrace(); //t.printStackTrace();
return false; return false;
} }
} }
if(installed) { if(installed && checkIfOpenMethod != null) {
try { try {
return (boolean) checkIfOpenMethod.invoke(null, item); return (boolean) checkIfOpenMethod.invoke(null, item);
} catch (IllegalAccessException | InvocationTargetException ignored) { } catch (IllegalAccessException | InvocationTargetException ignored) {