Thutmose / Pokecube

Primary Development has moved to: https://github.com/Pokecube-Development
https://github.com/Pokecube-Development
19 stars 7 forks source link

.cfg file that changes when minecraft starts #294

Open Skyloq opened 6 years ago

Skyloq commented 6 years ago

What happens:

I use this method ( https://github.com/Thutmose/Pokecube/issues/289 ) to modify the spawn of pokemons, but when launching minecraft the pokecube.cfg file is modified and no longer contains the line of code that allows the pokemobs_spawns_new.json file to execute

The method was working fine before I updated pokecube-mobs and pokecube-revival

Steps to reproduce:

  1. Modifie Pokecube.cfg by adding pokemobs_spawns_new
  2. Create pokemobs_spawns_new by copying pokemobs_spawns
  3. Modifie pokemobs_spawns_new.json
  4. Save the modification
  5. Launch Minecraft ( With Pokecube )
  6. Back to Pokecube.cfg and see that the file has been modified ( pokemobs_spawns_new deleted )

Affected Versions (Do not use "latest"):

image

Thutmose commented 6 years ago

that is very odd, pokecube mobs and revival shouldn't be affecting the pokecube core cfg, the cfg does "change" on startup, as it loads the values and then re-saves the files, but it shouldn't remove any valid config options that are added. I will look into this in my development environment and see if I can find anything