Rewrite main menu button injection code (closes #577, fixes #621)

For 1.16.4+ only because we use parts of fabric-screen-api.
This commit is contained in:
Jonas Herzig
2023-06-12 09:17:40 +02:00
parent f92d6f5281
commit 587eff59fe
4 changed files with 170 additions and 3 deletions

View File

@@ -275,8 +275,8 @@ dependencies {
11502: '0.5.1+build.294-1.15',
11601: '0.14.0+build.371-1.16',
11603: '0.17.1+build.394-1.16',
11604: '0.25.1+build.416-1.16',
11701: '0.37.1+1.17',
11604: '0.42.0+1.16',
11701: '0.46.1+1.17',
11800: '0.43.1+1.18',
11801: '0.43.1+1.18',
11802: '0.47.9+1.18.2',
@@ -296,6 +296,9 @@ dependencies {
fabricApiModules.remove("keybindings-v0")
fabricApiModules.add("key-binding-api-v1")
}
if (mcVersion >= 11604) {
fabricApiModules.add("screen-api-v1")
}
if (mcVersion >= 11700) {
fabricApiModules.remove("networking-v0")
fabricApiModules.add("networking-api-v1")