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) { private ConfigurationNode getWorldConfigurationNode(String worldName) {
ConfigurationNode result = configuration.getNode("worlds").getNode(worldName); ConfigurationNode worlds = configuration.getNode("worlds");
if (result == null) if (worlds != null)
return configuration.getNode("worlds").getNode(worldName);
return new ConfigurationNode(); return new ConfigurationNode();
return result;
} }
private ConfigurationNode getTemplateConfigurationNode(String templateName) { private ConfigurationNode getTemplateConfigurationNode(String templateName) {