Fix config being saved everytime and comments being wiped

This commit is contained in:
libraryaddict 2014-05-28 21:42:11 +12:00
parent 3a32a91233
commit b04f5faea9

View File

@ -53,7 +53,7 @@ public class LibsDisguises extends JavaPlugin {
if (internalConfig.isConfigurationSection(option)) {
ConfigurationSection section = internalConfig.getConfigurationSection(option);
for (String secondOption : section.getKeys(false)) {
if (!config.contains(secondOption)) {
if (!config.contains(option + "." + secondOption)) {
config.set(option + "." + secondOption, section.get(secondOption));
needToSaveConfig = true;
}