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