Skip to content

Commit 49a75b1

Browse files
committedSep 9, 2013
Make --migrate update world.mt too
1 parent 321ac66 commit 49a75b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/main.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,11 @@ int main(int argc, char *argv[])
12661266
new_db->endSave();
12671267

12681268
actionstream << "Successfully migrated " << count << " blocks" << std::endl;
1269-
actionstream << "Don't forget to update your world.mt backend setting!" << std::endl;
1269+
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;
12701274

12711275
return 0;
12721276
}

0 commit comments

Comments
 (0)
Please sign in to comment.