From 49a75b18945bcbc75e59857374356497345f08af Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Mon, 9 Sep 2013 20:07:25 +0200 Subject: [PATCH] Make --migrate update world.mt too --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ca3c3bc5..dc67f29b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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!"<