mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 11:20:32 +01:00
Now correctly saving worlds
This commit is contained in:
parent
0efc0b965b
commit
fd227960b9
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user