mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 17:23:45 +01:00
Fix 'Unknown map backend' error when using Configure menu right after creating world
This commit is contained in:
parent
f1e4a671dc
commit
d423a8fc20
@ -242,7 +242,7 @@ bool initializeWorld(const std::string &path, const std::string &gameid)
|
||||
infostream<<"Creating world.mt ("<<worldmt_path<<")"<<std::endl;
|
||||
fs::CreateAllDirs(path);
|
||||
std::ostringstream ss(std::ios_base::binary);
|
||||
ss<<"gameid = "<<gameid<<"\nbackend = sqlite3";
|
||||
ss<<"gameid = "<<gameid<<"\nbackend = sqlite3\n";
|
||||
fs::safeWriteToFile(worldmt_path, ss.str());
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user