Now correctly saving worlds

This commit is contained in:
main() 2012-03-04 20:21:42 +01:00
parent 0efc0b965b
commit fd227960b9
1 changed files with 2 additions and 1 deletions

View File

@ -591,7 +591,8 @@ public class WorldManager implements MVWorldManager {
public boolean saveWorldsConfig() {
try {
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.save(new File(this.plugin.getDataFolder(), "worlds.yml"));