Fix wrong exception being logged on BlueMapAPI-listener error

This commit is contained in:
Lukas Rieger (Blue) 2024-07-25 15:39:22 +02:00
parent 511d3ffa98
commit dcbb0207c5
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -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);
}
}