Add command to generate server from CurseForge modpack.

This commit is contained in:
Daniel Scalzi
2023-03-18 17:26:35 -04:00
parent 71c2e9baa0
commit 6b2d9edf26
7 changed files with 212 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ export class VersionSegmentedRegistry {
ForgeGradle3Adapter
]
public static readonly FORGEMOD_STRUCT_IML = [
public static readonly FORGEMOD_STRUCT_IMPL = [
ForgeModStructure17,
ForgeModStructure113
]
@@ -44,7 +44,7 @@ export class VersionSegmentedRegistry {
baseUrl: string,
untrackedFiles: UntrackedFilesOption[]
): BaseForgeModStructure {
for (const impl of VersionSegmentedRegistry.FORGEMOD_STRUCT_IML) {
for (const impl of VersionSegmentedRegistry.FORGEMOD_STRUCT_IMPL) {
if (impl.isForVersion(minecraftVersion, forgeVersion)) {
return new impl(absoluteRoot, relativeRoot, baseUrl, minecraftVersion, untrackedFiles)
}