mirror of
https://github.com/shansen/EggCatcher.git
synced 2025-01-07 16:28:06 +01:00
fix error in configFile update
This commit is contained in:
parent
d7614ca27f
commit
45500ec06b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user