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) {
|
private ConfigurationNode getWorldConfigurationNode(String worldName) {
|
||||||
ConfigurationNode result = configuration.getNode("worlds").getNode(worldName);
|
ConfigurationNode worlds = configuration.getNode("worlds");
|
||||||
if (result == null)
|
if (worlds != null)
|
||||||
return new ConfigurationNode();
|
return configuration.getNode("worlds").getNode(worldName);
|
||||||
return result;
|
return new ConfigurationNode();
|
||||||
}
|
}
|
||||||
|
|
||||||
private ConfigurationNode getTemplateConfigurationNode(String templateName) {
|
private ConfigurationNode getTemplateConfigurationNode(String templateName) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue