Skip to content

Commit

Permalink
Fixing: Resolved an issue where the default world was incorrectly sho…
Browse files Browse the repository at this point in the history
…wn as unloaded despite being loaded (#54)
  • Loading branch information
Dev7ex committed Jan 20, 2025
1 parent c35d111 commit 9144bdc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9144bdc

Please sign in to comment.