mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 18:01:07 -05:00
parent
9cf54a3e8c
commit
69d94c54c3
1 changed files with 9 additions and 3 deletions
|
@ -207,10 +207,9 @@ export class CurseForgeUploadApiClient {
|
||||||
const addonGameVersionIds = findCurseForgeGameVersionIdsByNames(map.game_versions_for_addons, pluginGameVersionNames, undefined, CURSEFORGE_GAME_VERSION_PLUGIN_NAME_COMPARER);
|
const addonGameVersionIds = findCurseForgeGameVersionIdsByNames(map.game_versions_for_addons, pluginGameVersionNames, undefined, CURSEFORGE_GAME_VERSION_PLUGIN_NAME_COMPARER);
|
||||||
|
|
||||||
const idVariants = [
|
const idVariants = [
|
||||||
// These ids are the most common on CurseForge.
|
// These ids are used by: `Mods`.
|
||||||
//
|
//
|
||||||
// They are used by: `Mods`, `Modpacks`, `Customization`,
|
// This is the most common project type out there, so we try these ids first.
|
||||||
// `Resource Packs`, and `Worlds`.
|
|
||||||
loaderIds.length ? gameVersionIds.concat(loaderIds, javaIds) : gameVersionIds,
|
loaderIds.length ? gameVersionIds.concat(loaderIds, javaIds) : gameVersionIds,
|
||||||
|
|
||||||
// These ids are used by: `Bukkit Plugins`.
|
// These ids are used by: `Bukkit Plugins`.
|
||||||
|
@ -220,6 +219,13 @@ export class CurseForgeUploadApiClient {
|
||||||
// to publish plugins with it, rather than addons.
|
// to publish plugins with it, rather than addons.
|
||||||
pluginGameVersionIds,
|
pluginGameVersionIds,
|
||||||
|
|
||||||
|
// These ids are used by: `Modpacks`, `Customization`,
|
||||||
|
// `Resource Packs`, and `Worlds`.
|
||||||
|
//
|
||||||
|
// The same ids as for `Mods`, but without loaders, because
|
||||||
|
// those are not supported for any other project type.
|
||||||
|
loaderIds.length ? gameVersionIds : [],
|
||||||
|
|
||||||
// These ids are used by: `Addons`.
|
// These ids are used by: `Addons`.
|
||||||
addonGameVersionIds,
|
addonGameVersionIds,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue