13
0
geforkt von Mirrors/Paper

fix for BUKKIT-342 - getConfigurationSection returning the default section instead of creating a new section if defaults are present.

By: sleak <sleak@sleak-PC>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-12-16 09:23:53 -08:00
Ursprung 8535006335
Commit 1082fbba2a

Datei anzeigen

@ -882,8 +882,12 @@ public class MemorySection implements ConfigurationSection {
throw new IllegalArgumentException("Path cannot be null");
}
Object val = get(path, getDefault(path));
Object val = get(path, null);
if (val != null)
return (val instanceof ConfigurationSection) ? (ConfigurationSection)val : null;
val = get(path, getDefault(path));
return (val instanceof ConfigurationSection) ? createSection(path) : null;
}
public boolean isConfigurationSection(String path) {