Skip to content

Commit

Permalink
Reduce error potential in dWorld unload related mechs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 10, 2016
1 parent 72da2da commit bdeda77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dWorld.java
Expand Up @@ -924,6 +924,7 @@ public void adjust(Mechanism mechanism) {
catch (Exception ex) {
dB.echoError(ex);
}
return;
}

// <--[mechanism]
Expand All @@ -937,6 +938,7 @@ public void adjust(Mechanism mechanism) {
// -->
if (mechanism.matches("force_unload")) {
Bukkit.getServer().unloadWorld(getWorld(), false);
return;
}

// <--[mechanism]
Expand Down Expand Up @@ -1094,6 +1096,7 @@ public void adjust(Mechanism mechanism) {
// -->
if (mechanism.matches("unload")) {
Bukkit.getServer().unloadWorld(getWorld(), true);
return;
}

// <--[mechanism]
Expand Down

0 comments on commit bdeda77

Please sign in to comment.