mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-09-16 01:57:14 +02:00
Fix world loading state in DEditWorld#save()
This commit is contained in:
parent
41715f37b0
commit
ed838d01da
@ -106,13 +106,13 @@ public class DEditWorld extends DInstanceWorld implements EditWorld {
|
||||
DResourceWorld.deleteUnusedFiles(getResource().getFolder());
|
||||
FileUtil.removeDir(getFolder());
|
||||
|
||||
plugin.setLoadingWorld(false);
|
||||
EditWorld newEditWorld = getResource().getOrInstantiateEditWorld(true);
|
||||
players.forEach(p -> {
|
||||
if (p.isOnline()) {
|
||||
new DEditPlayer(plugin, p, newEditWorld);
|
||||
}
|
||||
});
|
||||
plugin.setLoadingWorld(false);
|
||||
}
|
||||
}.send(plugin);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user