mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Add ModInfo.id getter
Provide a simple unique identifier for mods consisting of the name followed by an underscore and then the version.
This commit is contained in:
1 parent
ddba58ca99
commit
867bb0c646
4 files changed
+13
-5
No files matched your search
@@ -867,7 +867,7 @@ modPackCommands.add(new lib.Command({
|
||||
}],
|
||||
handler: async function(args: { modPack: string }, control: Control) {
|
||||
let mods = new Map(
|
||||
(await control.send(new lib.ModListRequest())).map(m => [`${m.name}_${m.version}`, m])
|
||||
(await control.send(new lib.ModListRequest())).map(m => [m.id, m])
|
||||
);
|
||||
let modPack = await control.send(
|
||||
new lib.ModPackGetRequest(await lib.resolveModPack(control, args.modPack))
|
||||
|
||||
Reference in new issue
Block a user