diff --git a/src/main.cpp b/src/main.cpp index ec305d4b..a990032d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1037,6 +1037,31 @@ int main(int argc, char *argv[]) } } + // If a world name was specified, convert it to a path + if(commanded_worldname != ""){ + // Get information about available worlds + std::vector worldspecs = getAvailableWorlds(); + bool found = false; + for(u32 i=0; i worldspecs = getAvailableWorlds(); - world_path = ""; - for(u32 i=0; iget("name"); if(cmd_args.exists("name"))