Update config constructors to pass removeOldKeys boolean

This commit is contained in:
nossr50
2019-02-21 16:44:28 -08:00
parent b0b0167ee2
commit e6aee141fb
13 changed files with 35 additions and 27 deletions

View File

@@ -34,7 +34,7 @@ public class TreasureConfig extends ConfigCollection {
public TreasureConfig() {
//super(McmmoCore.getDataFolderPath().getAbsoluteFile(),"treasures.yml");
super(mcMMO.p.getDataFolder().getAbsoluteFile(), "treasures.yml", true);
super(mcMMO.p.getDataFolder().getAbsoluteFile(), "treasures.yml", false, true, false);
}
/**
@@ -60,7 +60,7 @@ public class TreasureConfig extends ConfigCollection {
}
@Override
protected boolean validateKeys() {
public List<String> validateKeys() {
// Validate all the settings!
List<String> reason = new ArrayList<String>();
for (String tier : config.getConfigurationSection("Enchantment_Drop_Rates").getKeys(false)) {