forked from mirror/BlueMap
Fix wrong exception being logged on BlueMapAPI-listener error
This commit is contained in:
parent
511d3ffa98
commit
dcbb0207c5
@ -168,7 +168,7 @@ public void register() {
|
||||
try {
|
||||
BlueMapAPI.registerInstance(this);
|
||||
} catch (Exception ex) {
|
||||
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!", ex.getCause());
|
||||
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!", ex);
|
||||
}
|
||||
}
|
||||
|
||||
@ -176,7 +176,7 @@ public void unregister() {
|
||||
try {
|
||||
BlueMapAPI.unregisterInstance(this);
|
||||
} catch (Exception ex) {
|
||||
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onDisable)!", ex.getCause());
|
||||
Logger.global.logError("BlueMapAPI: A BlueMapAPI listener threw an exception (onDisable)!", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user