forked from Mirrorlandia_minetest/minetest
added ignoring of map_meta.txt to better support old maps
This commit is contained in:
parent
4934f3d060
commit
dc6966cb9d
@ -1834,16 +1834,16 @@ ServerMap::ServerMap(std::string savedir):
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
try{
|
||||||
// Load map metadata (seed, chunksize)
|
// Load map metadata (seed, chunksize)
|
||||||
loadMapMeta();
|
loadMapMeta();
|
||||||
|
|
||||||
try{
|
|
||||||
// Load chunk metadata
|
// Load chunk metadata
|
||||||
loadChunkMeta();
|
loadChunkMeta();
|
||||||
}
|
}
|
||||||
catch(FileNotGoodException &e){
|
catch(FileNotGoodException &e){
|
||||||
dstream<<DTIME<<"WARNING: Server: Could not load "
|
dstream<<DTIME<<"WARNING: Server: Could not load "
|
||||||
<<"chunk metafile. Disabling chunk-based "
|
<<"metafile(s). Disabling chunk-based "
|
||||||
<<"generation."<<std::endl;
|
<<"generation."<<std::endl;
|
||||||
m_chunksize = 0;
|
m_chunksize = 0;
|
||||||
}
|
}
|
||||||
@ -4967,7 +4967,7 @@ void ServerMap::loadMapMeta()
|
|||||||
{
|
{
|
||||||
DSTACK(__FUNCTION_NAME);
|
DSTACK(__FUNCTION_NAME);
|
||||||
|
|
||||||
dstream<<"INFO: ServerMap::loadMapMeta(): Loading chunk metadata"
|
dstream<<"INFO: ServerMap::loadMapMeta(): Loading map metadata"
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
|
|
||||||
std::string fullpath = m_savedir + "/map_meta.txt";
|
std::string fullpath = m_savedir + "/map_meta.txt";
|
||||||
@ -4976,7 +4976,7 @@ void ServerMap::loadMapMeta()
|
|||||||
{
|
{
|
||||||
dstream<<"ERROR: ServerMap::loadMapMeta(): "
|
dstream<<"ERROR: ServerMap::loadMapMeta(): "
|
||||||
<<"could not open"<<fullpath<<std::endl;
|
<<"could not open"<<fullpath<<std::endl;
|
||||||
throw FileNotGoodException("Cannot open chunk metadata");
|
throw FileNotGoodException("Cannot open map metadata");
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings params;
|
Settings params;
|
||||||
|
Loading…
Reference in New Issue
Block a user