From 9144bdc5a55d7b0297e7a0ad1f30cca941678cdd Mon Sep 17 00:00:00 2001 From: Dev7ex <46531389+Dev7ex@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:11:50 +0100 Subject: [PATCH] Fixing: Resolved an issue where the default world was incorrectly shown as unloaded despite being loaded (#54) --- .../main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/multiworld-bukkit/src/main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java b/multiworld-bukkit/src/main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java index 74807ce..42fb1b1 100644 --- a/multiworld-bukkit/src/main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java +++ b/multiworld-bukkit/src/main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java @@ -45,6 +45,10 @@ public void run() { return; } + if (worldHolder.getName().equalsIgnoreCase(this.configuration.getString("settings.defaults.normal-world"))) { + return; + } + if ((System.currentTimeMillis() - worldHolder.getLastActivity()) >= (this.configuration.getAutoUnloadSystemDelay() * 1000L)) { if (!this.worldUnloadQueue.contains(worldHolder)) { this.worldUnloadQueue.add(worldHolder);