diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java index 0e515f33..7a0d544d 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java @@ -57,9 +57,11 @@ public class WorldManager implements MVWorldManager { }); if (files.length == 1) { FileConfiguration bukkitConfig = YamlConfiguration.loadConfiguration(files[0]); - Set keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false); - for (String key : keys) { - defaultGens.put(key, bukkitConfig.getString("worlds." + key + ".generator", "")); + if (bukkitConfig.isConfigurationSection("worlds")) { + Set keys = bukkitConfig.getConfigurationSection("worlds").getKeys(false); + for (String key : keys) { + defaultGens.put(key, bukkitConfig.getString("worlds." + key + ".generator", "")); + } } } }