summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-12-16 10:19:00 +1100
committermd_5 <git@md-5.net>2017-12-16 10:19:00 +1100
commit04595908e5ceae3281480a4abab2f2c91cc05a35 (patch)
tree6b3cc1f2ec5706f72048e2d041f8ca8c274bdfd6
parentfb4564cc37c37a19a8920025de6bb19dbf852338 (diff)
downloadcraftbukkit-04595908e5ceae3281480a4abab2f2c91cc05a35.tar
craftbukkit-04595908e5ceae3281480a4abab2f2c91cc05a35.tar.gz
craftbukkit-04595908e5ceae3281480a4abab2f2c91cc05a35.tar.lz
craftbukkit-04595908e5ceae3281480a4abab2f2c91cc05a35.tar.xz
craftbukkit-04595908e5ceae3281480a4abab2f2c91cc05a35.zip
Allow unloading all worlds except the main one
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index c0ebdf1a..5bf77e5f 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -945,7 +945,7 @@ public final class CraftServer implements Server {
return false;
}
- if (!(handle.dimension > 1)) {
+ if (handle.dimension == 0) {
return false;
}