@@ -126,15 +126,18 @@ dependencies {
126126 modRuntimeOnly(" me.djtheredstoner:DevAuth-${loader.loader} :${deps.devauthVersion} " )
127127 include(implementation(" com.moulberry:mixinconstraints:${deps.mixinconstraintsVersion} " )!! )!!
128128 include(implementation(annotationProcessor(" com.github.bawnorton.mixinsquared:mixinsquared-${loader.loader} :${deps.mixinsquaredVersion} " )!! )!! )
129-
130129 if (loader.isFabric) {
131130 modImplementation(" net.fabricmc:fabric-loader:${deps.fabricLoaderVersion} " )!!
132- modImplementation(" net.fabricmc.fabric-api:fabric-api:${deps.fabricApiVersion} +${mc.version} " )
133- modImplementation(fletchingTable.modrinth(" modmenu" , " ${mc.version} " , " fabric" ))
131+ modImplementation(" net.fabricmc.fabric-api:fabric-api:${deps.fabricApiVersion} " )
132+ if (project.hasProperty(" deps.modmenu_version" )) {
133+ modImplementation(" com.terraformersmc:modmenu:${property(" deps.modmenu_version" )} " )
134+ } else {
135+ modImplementation(fletchingTable.modrinth(" modmenu" , " ${mc.version} " , " fabric" ))
136+ }
137+
134138 } else if (loader.isNeoforge) {
135139 " neoForge" (" net.neoforged:neoforge:${deps.neoforgeVersion} " )
136140 }
137-
138141}
139142
140143// mc_dep fields must be in the format 'x', '>=x', '>=x <=y'
@@ -227,7 +230,6 @@ tasks.processResources {
227230 put(" modrinth" , mod.modrinth)
228231 put(" curseforge" , mod.curseforge)
229232 put(" discord" , mod.discord)
230-
231233 if (loader.isFabric) {
232234 put(" fabric_loader_version" , deps.fabricLoaderVersion)
233235 }
0 commit comments