Fix when leaving out the world: section.
This commit is contained in:
parent
eb76fbe007
commit
0f4a8c2023
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue