We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 321ac66 commit 49a75b1Copy full SHA for 49a75b1
src/main.cpp
@@ -1266,7 +1266,11 @@ int main(int argc, char *argv[])
1266
new_db->endSave();
1267
1268
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
1269
- actionstream << "Don't forget to update your world.mt backend setting!" << std::endl;
+ world_mt.set("backend", migrate_to);
1270
+ if(!world_mt.updateConfigFile((world_path + DIR_DELIM + "world.mt").c_str()))
1271
+ errorstream<<"Failed to update world.mt!"<<std::endl;
1272
+ else
1273
+ actionstream<<"world.mt updated"<<std::endl;
1274
1275
return 0;
1276
}
0 commit comments