mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-28 21:48:34 +01:00
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 {
|
try {
|
||||||
BlueMapAPI.registerInstance(this);
|
BlueMapAPI.registerInstance(this);
|
||||||
} catch (Exception ex) {
|
} 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 {
|
try {
|
||||||
BlueMapAPI.unregisterInstance(this);
|
BlueMapAPI.unregisterInstance(this);
|
||||||
} catch (Exception ex) {
|
} 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