Fixed allow-nether being ignored

This commit is contained in:
Nathan Adams
2011-11-24 18:48:01 +00:00
parent de7402ea8e
commit c6beae8872
3 changed files with 14 additions and 10 deletions

View File

@@ -203,18 +203,18 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
log.info("Default game type: " + j);
// CraftBukkit start (+ removed worldsettings and servernbtmanager)
int worldCount = 2;
if (this.propertyManager.getBoolean("allow-nether", true)) {
worldCount++;
}
int worldCount = 3;
for (int k = 0; k < worldCount; ++k) {
WorldServer world;
int dimension = 0;
if (k == 1) {
dimension = -1;
if (this.propertyManager.getBoolean("allow-nether", true)) {
dimension = -1;
} else {
continue;
}
}
if (k == 2) {