diff --git a/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java b/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java index 2cb1c694..bda5ff0a 100644 --- a/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java +++ b/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java @@ -149,6 +149,10 @@ public class WorldImporter implements IDataImporter { this.world.releaseRef(); this.threadPool.shutdown(); } + //Free all the remaining entries by running the lambda + while (!this.jobQueue.isEmpty()) { + this.jobQueue.poll().run(); + } } private interface IImporterMethod {