mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Make --migrate update world.mt too
This commit is contained in:
parent
321ac66558
commit
49a75b1894
@ -1266,7 +1266,11 @@ int main(int argc, char *argv[])
|
|||||||
new_db->endSave();
|
new_db->endSave();
|
||||||
|
|
||||||
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
|
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
|
||||||
actionstream << "Don't forget to update your world.mt backend setting!" << std::endl;
|
world_mt.set("backend", migrate_to);
|
||||||
|
if(!world_mt.updateConfigFile((world_path + DIR_DELIM + "world.mt").c_str()))
|
||||||
|
errorstream<<"Failed to update world.mt!"<<std::endl;
|
||||||
|
else
|
||||||
|
actionstream<<"world.mt updated"<<std::endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user