Fix import shutdown

This commit is contained in:
mcrcortex
2025-02-06 06:48:03 +10:00
parent 5d187589b4
commit f37c5353d0

View File

@@ -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) {