mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 18:43:30 -04:00
Fix zones getting lost with /resizelvl (Thanks starlightglimmer)
This commit is contained in:
parent
d63b498c31
commit
c91cfc7360
@ -104,6 +104,11 @@ namespace MCGalaxy.Commands.World {
|
||||
|
||||
lock (lvl.saveLock) {
|
||||
lvl.Backup(true);
|
||||
|
||||
// Make sure zones are kept
|
||||
res.Zones = lvl.Zones;
|
||||
lvl.Zones = new VolatileArray<Zone>(false);
|
||||
|
||||
IMapExporter.Formats[0].Write(LevelInfo.MapPath(lvl.name), res);
|
||||
lvl.SaveChanges = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user