fix error in configFile update

This commit is contained in:
BuildTools 2021-07-16 00:14:37 +02:00
parent d7614ca27f
commit 45500ec06b

View File

@ -48,6 +48,8 @@ public class EggCatcher extends JavaPlugin {
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
if (configVersion < 6.0) {
MigrateConfigFile();
this.saveConfig();
return;
}
if (configVersion == 6.0) {
this.saveConfig();
@ -109,7 +111,7 @@ public class EggCatcher extends JavaPlugin {
entityList.put(entitiesInConfig[i], entity);
}
config.set("Entity", entityList);
config.set("Version", 6.0);
config.set("ConfigVersion", 6.0);
config.set("VaultCost", null);
config.set("HealthPercentage", null);
config.set("CatchChance", null);