File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ dependencies {
2525 }
2626}
2727
28- tasks.processResources {
29- if (mod.isFabric) expand(
30- " fabric_loader" to mod.prop(" loader_version" ), " java_version" to java.toolchain
31- .languageVersion.toString(), " fabric_api" to mod.prop(" fabric_version" ),
32- " flk_version" to " ${mod.prop(" flk_version" )} +kotlin.$kotlinVersion "
33- ) else expand(
34- " neoforge_version" to mod.prop(" loader_version" ), " klf_version" to mod.prop(" klf_version" ),
28+ modSettings {
29+ val replaces = mutableMapOf (
30+ " fabric_loader" to mod.prop(" loader_version" ), " java_version" to java.toolchain.languageVersion.toString(),
31+ " fabric_api" to mod.prop(" fabric_version" ),
32+ " flk_version" to " ${mod.prop(" flk_version" )} +kotlin.$kotlinVersion " ,
33+ " neoforge_version" to mod.prop(" loader_version" ), " klf_version" to mod.prop(" klf_version" )
3534 )
35+ variableReplacements.putAll(replaces)
3636}
3737
3838fun DependencyHandlerScope.implementMod (dependencyNotation : Any ) {
Original file line number Diff line number Diff line change 66 "description" : " ${description}" ,
77 "authors" : [ " AlgorithmLX" ],
88 "contact" : {
9- "issues" : " https://github.com/AlgorithmLX/${mod_name }/issues" ,
10- "sources" : " https://github.com/AlgorithmLX/${mod_name }/"
9+ "issues" : " https://github.com/AlgorithmLX/${name }/issues" ,
10+ "sources" : " https://github.com/AlgorithmLX/${name }/"
1111 },
1212 "icon" : " logo.png" ,
1313 "license" : " All-Rights-Reserved" ,
You can’t perform that action at this time.
0 commit comments