From f37c5353d035edfd130c44c19bc11a821fa363f3 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 6 Feb 2025 06:48:03 +1000 Subject: [PATCH] Fix import shutdown --- .../me/cortex/voxy/client/core/WorldImportWrapper.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/client/core/WorldImportWrapper.java b/src/main/java/me/cortex/voxy/client/core/WorldImportWrapper.java index 194f7662..b9feabbf 100644 --- a/src/main/java/me/cortex/voxy/client/core/WorldImportWrapper.java +++ b/src/main/java/me/cortex/voxy/client/core/WorldImportWrapper.java @@ -28,8 +28,16 @@ public class WorldImportWrapper { } public void shutdown() { + Logger.info("Shutting down importer"); - try {this.importer.shutdown();this.importer = null;} catch (Exception e) {Logger.error("Error shutting down importer", e);} + if (this.importer != null) { + try { + this.importer.shutdown(); + this.importer = null; + } catch (Exception e) { + Logger.error("Error shutting down importer", e); + } + } //Remove bossbar if (this.importerBossBarUUID != null) {