@@ -425,9 +425,9 @@ local function getWorldModlist(detailed)
425425 path = tostring (path .value )
426426 -- skip vanilla "mods"
427427 if not path :startswith (INSTALLED_MODS_PATH ) then goto continue end
428- local id , version , name , steam_id = scriptmanager .get_mod_id_and_version (path )
429- if not id or not version then goto continue end
430- mods [id ]= {handled = true , name = name , version = version , steam_id = steam_id }
428+ local id , numerical_version , name , steam_id , display_version = scriptmanager .get_mod_info (path )
429+ if not id or not numerical_version then goto continue end
430+ mods [id ]= {handled = true , name = name , version = display_version , steam_id = steam_id }
431431 scriptmanager .add_mod_paths (mod_paths , id , path , ' .' )
432432 :: continue::
433433 end
@@ -436,9 +436,9 @@ local function getWorldModlist(detailed)
436436 if detailed then
437437 local url
438438 if mods [mod .id ].steam_id then
439- url = ' https://steamcommunity.com/sharedfiles/filedetails/?id=' .. mods [mod .id ].steam_id
439+ url = ' : https://steamcommunity.com/sharedfiles/filedetails/?id=' .. mods [mod .id ].steam_id
440440 end
441- table.insert (modlist ,(' %s %s (%s): %s' ):format (mods [mod .id ].name or mod .id , mods [mod .id ].version or ' ' , mod .id , url or ' ' ))
441+ table.insert (modlist ,(' %s %s (%s)%s' ):format (mods [mod .id ].name or mod .id , mods [mod .id ].version or ' ' , mod .id , url or ' ' ))
442442 else
443443 table.insert (modlist ,mods [mod .id ].name or mod .id )
444444 end
0 commit comments