From b04f5faea9ce12a234ce139dfa7a64b18fc24ac6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 28 May 2014 21:42:11 +1200 Subject: [PATCH] Fix config being saved everytime and comments being wiped --- src/me/libraryaddict/disguise/LibsDisguises.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index d3297033..3967a025 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -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; }