Fix when leaving out the world: section.

This commit is contained in:
FrozenCow 2011-05-26 03:03:45 +02:00
parent fd0c430695
commit f0cdd5614b

View File

@ -406,10 +406,10 @@ public class DynmapPlugin extends JavaPlugin {
}
private ConfigurationNode getWorldConfigurationNode(String worldName) {
ConfigurationNode result = configuration.getNode("worlds").getNode(worldName);
if (result == null)
return new ConfigurationNode();
return result;
ConfigurationNode worlds = configuration.getNode("worlds");
if (worlds != null)
return configuration.getNode("worlds").getNode(worldName);
return new ConfigurationNode();
}
private ConfigurationNode getTemplateConfigurationNode(String templateName) {