Skip to content

Commit

Permalink
Fix missing replacement data for asset index
Browse files Browse the repository at this point in the history
More of a workaround cause this whole ReplacementProvider bullshit is unfixable.
  • Loading branch information
Johni0702 committed Jun 4, 2021
1 parent 4a530cd commit 865cfbf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static net.minecraftforge.gradle.common.Constants.JAR_MERGED;
import static net.minecraftforge.gradle.common.Constants.MCP_INJECT;
import static net.minecraftforge.gradle.common.Constants.MCP_PATCHES_MERGED;
import static net.minecraftforge.gradle.common.Constants.REPLACE_ASSET_INDEX;
import static net.minecraftforge.gradle.common.Constants.TASK_DL_VERSION_JSON;
import static net.minecraftforge.gradle.common.Constants.TASK_GENERATE_SRGS;
import static net.minecraftforge.gradle.common.Constants.TASK_MERGE_JARS;
Expand Down Expand Up @@ -170,6 +171,8 @@ protected void afterEvaluate()
if (jsonFile.exists())
{
parseAndStoreVersion(jsonFile, delayedFile(DIR_JSONS).call());
} else {
replacer.putReplacement(REPLACE_ASSET_INDEX, getApiGroup(ext) + "." + getApiName(ext) + "." + getApiVersion(ext));
}
}

Expand Down

0 comments on commit 865cfbf

Please sign in to comment.