mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Allow Hook#getFailureCause() to return null
This commit is contained in:
parent
856dcb8b3d
commit
7ef78d6ab1
@ -26,7 +26,7 @@ public class HooksManager {
|
||||
if (hook.hook()) {
|
||||
hooks.add(hook);
|
||||
} else {
|
||||
plugin.log("Could not hook with " + hook.getPluginName() + " because: " + hook.getFailureCause() + ". Skipping...");
|
||||
plugin.log("Could not hook with " + hook.getPluginName() + ((hook.getFailureCause() != null) ? " because: " + hook.getFailureCause() : "") + ". Skipping...");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user