From dcbb0207c5fe0ce4d02c0bf7be53f2b459edf849 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Thu, 25 Jul 2024 15:39:22 +0200 Subject: [PATCH] Fix wrong exception being logged on BlueMapAPI-listener error --- .../de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java index 2652324a..ed4e7cd9 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/api/BlueMapAPIImpl.java @@ -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); } }