Skip to content

Commit 9144bdc

Browse files
committed
Fixing: Resolved an issue where the default world was incorrectly shown as unloaded despite being loaded (#54)
1 parent c35d111 commit 9144bdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

multiworld-bukkit/src/main/java/com/dev7ex/multiworld/task/WorldUnloadTask.java

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public void run() {
4545
return;
4646
}
4747

48+
if (worldHolder.getName().equalsIgnoreCase(this.configuration.getString("settings.defaults.normal-world"))) {
49+
return;
50+
}
51+
4852
if ((System.currentTimeMillis() - worldHolder.getLastActivity()) >= (this.configuration.getAutoUnloadSystemDelay() * 1000L)) {
4953
if (!this.worldUnloadQueue.contains(worldHolder)) {
5054
this.worldUnloadQueue.add(worldHolder);

0 commit comments

Comments
 (0)