diff --git a/src/index.ts b/src/index.ts index 8766e07..db9777d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,6 +33,7 @@ const buildToolProvider: string = (core.getInput('buildToolProvider') || 'Spigot let versions: string[] = fixArgArr((core.getInput('versions') || 'latest').toLowerCase().split(',')); const generateSrc: boolean = core.getInput('generateSrc') == 'true'; const generateDoc: boolean = core.getInput('generateDoc') == 'true'; +const remapped: string = (core.getInput("remapped") || ''); const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true'; const forceRun: boolean = core.getInput('forceRun') == 'true'; @@ -105,6 +106,11 @@ async function run(): Promise<{ code: number, msg?: string }> { if (disableJavaCheck) { buildToolsArgs.push('--disable-java-check'); } + + if (remapped) { + buildToolsArgs.push("--remapped"); + buildToolsArgs.push(remapped); + } const tasks = []; for (const ver of versions) { @@ -224,4 +230,4 @@ export function logError(msg?: string | object): void { run() .then((result) => exit(result.code, result.msg)) - .catch((err) => exit(1, err)); \ No newline at end of file + .catch((err) => exit(1, err));