mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Fix when leaving out the world: section.
This commit is contained in:
parent
fd0c430695
commit
f0cdd5614b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user