Now correctly saving worlds

This commit is contained in:
main() 2012-03-04 20:21:42 +01:00
parent 0efc0b965b
commit fd227960b9

View File

@ -591,7 +591,8 @@ public class WorldManager implements MVWorldManager {
public boolean saveWorldsConfig() { public boolean saveWorldsConfig() {
try { try {
this.configWorlds.options().pathSeparator(SEPARATOR); this.configWorlds.options().pathSeparator(SEPARATOR);
for (Map.Entry<String, MultiverseWorld> entry : worlds.entrySet()) { this.configWorlds.set("worlds", null);
for (Map.Entry<String, ? extends MultiverseWorld> entry : worldsFromTheConfig.entrySet()) {
this.configWorlds.set("worlds" + SEPARATOR + entry.getKey(), entry.getValue()); this.configWorlds.set("worlds" + SEPARATOR + entry.getKey(), entry.getValue());
} }
this.configWorlds.save(new File(this.plugin.getDataFolder(), "worlds.yml")); this.configWorlds.save(new File(this.plugin.getDataFolder(), "worlds.yml"));