mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
A small fix to unnecessary saving of map metadata
This commit is contained in:
parent
2830095366
commit
664eb4f7c5
@ -4801,7 +4801,6 @@ void ServerMap::save(bool only_changed)
|
|||||||
if(only_changed == false || m_map_metadata_changed)
|
if(only_changed == false || m_map_metadata_changed)
|
||||||
{
|
{
|
||||||
saveMapMeta();
|
saveMapMeta();
|
||||||
m_map_metadata_changed = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable saving chunk metadata if chunks are disabled
|
// Disable saving chunk metadata if chunks are disabled
|
||||||
@ -4985,6 +4984,7 @@ void ServerMap::saveMapMeta()
|
|||||||
|
|
||||||
os<<"[end_of_params]\n";
|
os<<"[end_of_params]\n";
|
||||||
|
|
||||||
|
m_map_metadata_changed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerMap::loadMapMeta()
|
void ServerMap::loadMapMeta()
|
||||||
@ -5072,6 +5072,8 @@ void ServerMap::saveChunkMeta()
|
|||||||
// Write chunk data
|
// Write chunk data
|
||||||
chunk->serialize(os, version);
|
chunk->serialize(os, version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setChunksNonModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerMap::loadChunkMeta()
|
void ServerMap::loadChunkMeta()
|
||||||
|
Loading…
Reference in New Issue
Block a user