From 426d2f9089a0d7f6868888deda8689155a871662 Mon Sep 17 00:00:00 2001 From: Vladislav Laetansky <87545780+vlaetansky@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:44:54 +0300 Subject: [PATCH] Move remoteMappings to the scope of deobf(SS) (#47) --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index bcbbaa3..26139e3 100644 --- a/build.gradle +++ b/build.gradle @@ -122,7 +122,6 @@ boolean usesMixinDebug = project.hasProperty('usesMixinDebug') ?: project.usesMi boolean forceEnableMixins = project.hasProperty('forceEnableMixins') ? project.forceEnableMixins.toBoolean() : false String channel = project.hasProperty('channel') ? project.channel : 'stable' String mappingsVersion = project.hasProperty('mappingsVersion') ? project.mappingsVersion : '12' -String remoteMappings = project.hasProperty('remoteMappings') ? project.remoteMappings : 'https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/' String javaSourceDir = "src/main/java/" String scalaSourceDir = "src/main/scala/" String kotlinSourceDir = "src/main/kotlin/" @@ -855,6 +854,7 @@ if(file(deobfFile).exists()) { } String mappingsVer +String remoteMappings = project.hasProperty('remoteMappings') ? project.remoteMappings : 'https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/' if(remoteMappings) { String id = "${forgeVersion.split("\\.")[3]}-$minecraftVersion" String mappingsZIP = "$cacheDir/forge_gradle/maven_downloader/de/oceanlabs/mcp/mcp_snapshot_nodoc/$id/mcp_snapshot_nodoc-${id}.zip"