Skip to content

Commit

Permalink
Make --migrate update world.mt too
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Sep 9, 2013
1 parent 321ac66 commit 49a75b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Expand Up @@ -1266,7 +1266,11 @@ int main(int argc, char *argv[])
new_db->endSave();

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;
}
Expand Down

0 comments on commit 49a75b1

Please sign in to comment.