Skip to content

Commit

Permalink
Remove ModMenu for now
Browse files Browse the repository at this point in the history
This is blocking the merger of the 1.20.4 update, and needs to be
resolved so we can migrate to the new Fabric loader.
  • Loading branch information
mattco98 committed Dec 20, 2023
1 parent 4684537 commit a0c6105
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ dependencies {
include(modImplementation("gg.essential:universalcraft-$ucArtifact:320")!!)
include(modImplementation("gg.essential:elementa-1.18.1-fabric:610")!!)

val modMenuVersion = when (mcVersion) {
"1.20.4-fabric" -> "9.0.0-pre.1"
"1.19.4-fabric" -> "6.3.1"
else -> throw Exception("Minecraft version $mcVersion is not supported")
}
modApi("com.terraformersmc:modmenu:$modMenuVersion")

// TODO: Re-add this
// val modMenuVersion = when (mcVersion) {
// "1.20.4-fabric" -> "9.0.0-pre.1"
// "1.19.4-fabric" -> "6.3.1"
// else -> throw Exception("Minecraft version $mcVersion is not supported")
// }
// modApi("com.terraformersmc:modmenu:$modMenuVersion")

modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:1.1.2")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.chattriggers.ctjs.internal.compat

import com.chattriggers.ctjs.api.Config
import com.terraformersmc.modmenu.api.ConfigScreenFactory
import com.terraformersmc.modmenu.api.ModMenuApi

internal class ModMenuEntry : ModMenuApi {
override fun getModConfigScreenFactory(): ConfigScreenFactory<*> {
return ConfigScreenFactory {
Config.gui()
}
}
}
// TODO: Re-add this
// import com.chattriggers.ctjs.api.Config
// import com.terraformersmc.modmenu.api.ConfigScreenFactory
// import com.terraformersmc.modmenu.api.ModMenuApi
//
// internal class ModMenuEntry : ModMenuApi {
// override fun getModConfigScreenFactory(): ConfigScreenFactory<*> {
// return ConfigScreenFactory {
// Config.gui()
// }
// }
// }

0 comments on commit a0c6105

Please sign in to comment.