From 865cfbf735c2f54096eb53c4f2359f62d496213f Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 4 Jun 2021 11:40:36 +0200 Subject: [PATCH] Fix missing replacement data for asset index More of a workaround cause this whole ReplacementProvider bullshit is unfixable. --- .../gradle/user/patcherUser/PatcherUserBasePlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minecraftforge/gradle/user/patcherUser/PatcherUserBasePlugin.java b/src/main/java/net/minecraftforge/gradle/user/patcherUser/PatcherUserBasePlugin.java index 34a9cc1ec..2cd246309 100644 --- a/src/main/java/net/minecraftforge/gradle/user/patcherUser/PatcherUserBasePlugin.java +++ b/src/main/java/net/minecraftforge/gradle/user/patcherUser/PatcherUserBasePlugin.java @@ -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; @@ -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)); } }