Fix config being saved everytime and comments being wiped
This commit is contained in:
parent
3a32a91233
commit
b04f5faea9
@ -53,7 +53,7 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
if (internalConfig.isConfigurationSection(option)) {
|
if (internalConfig.isConfigurationSection(option)) {
|
||||||
ConfigurationSection section = internalConfig.getConfigurationSection(option);
|
ConfigurationSection section = internalConfig.getConfigurationSection(option);
|
||||||
for (String secondOption : section.getKeys(false)) {
|
for (String secondOption : section.getKeys(false)) {
|
||||||
if (!config.contains(secondOption)) {
|
if (!config.contains(option + "." + secondOption)) {
|
||||||
config.set(option + "." + secondOption, section.get(secondOption));
|
config.set(option + "." + secondOption, section.get(secondOption));
|
||||||
needToSaveConfig = true;
|
needToSaveConfig = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user