mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-25 03:35:18 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user