Skip to content

Commit f4e3618

Browse files
committed
Add support for 1.21.9 Fabric
1 parent c5f3e4b commit f4e3618

File tree

8 files changed

+19
-3
lines changed

8 files changed

+19
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dependencies {
5353
12106 -> "0.125.1+1.21.6"
5454
12107 -> "0.128.1+1.21.7"
5555
12108 -> "0.129.0+1.21.8"
56+
12109 -> "0.133.13+1.21.9"
5657
else -> error("Unable to determine fabric api version")
5758
}
5859

buildSrc/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies {
1414
implementation("com.google.code.gson:gson:2.11.0")
1515
implementation("gg.essential:essential-gradle-toolkit:0.6.7")
1616
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
17-
implementation("gg.essential:architectury-loom:1.7.30")
17+
implementation("gg.essential:architectury-loom:1.7.35")
1818
}
1919

2020
kotlin {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
essential.defaults.loom=1
2-
essential.defaults.loom.fabric-loader=net.fabricmc:fabric-loader:0.16.14
2+
essential.defaults.loom.fabric-loader=net.fabricmc:fabric-loader:0.17.2
33
org.gradle.jvmargs=-Xmx4G
44
# TODO remove once upgrading to Loom 1.10
55
# fabric-api 1.21.5 was built with Loom 1.10, seems to work well enough in dev with our current 1.7 though

root.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
preprocess {
66
strictExtraMappings.set(true)
77

8+
val fabric12109 = createNode("1.21.9-fabric", 12109, "yarn")
89
val fabric12108 = createNode("1.21.8-fabric", 12108, "yarn")
910
val fabric12107 = createNode("1.21.7-fabric", 12107, "yarn")
1011
val fabric12106 = createNode("1.21.6-fabric", 12106, "yarn")
@@ -48,6 +49,7 @@ preprocess {
4849
val forge11202 = createNode("1.12.2-forge", 11202, "srg")
4950
val forge10809 = createNode("1.8.9-forge", 10809, "srg")
5051

52+
fabric12109.link(fabric12108)
5153
fabric12108.link(fabric12107)
5254
fabric12107.link(fabric12106)
5355
fabric12106.link(fabric12105, file("versions/1.21.6-1.21.5.txt"))

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ listOf(
5959
"1.21.6-fabric",
6060
"1.21.7-fabric",
6161
"1.21.8-fabric",
62+
"1.21.9-fabric",
6263
).forEach { version ->
6364
include(":$version")
6465
project(":$version").apply {

src/main/java/gg/essential/partnermod/EssentialPartner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public class EssentialPartner {
8080
"1.18", "1.18.1", "1.18.2",
8181
"1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4",
8282
"1.20", "1.20.1", "1.20.2", "1.20.4", "1.20.6",
83-
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8"
83+
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9"
8484
));
8585

8686
private static final Set<String> NEOFORGE_SUPPORTED_VERSIONS = new HashSet<>(Arrays.asList(

src/main/java/gg/essential/partnermod/modal/ModalManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,21 @@ private boolean handleKeyTyped(int key) {
166166
//$$ ScreenEvents.afterRender(screen).register((screen1, matrices, mouseX, mouseY, tickDelta) -> {
167167
//$$ handleDraw(matrices);
168168
//$$ });
169+
//#if MC>=12109
170+
//$$ ScreenMouseEvents.allowMouseClick(screen).register((screen1, click) -> {
171+
//$$ return !handleMouseClick(click.x(), click.y());
172+
//$$ });
173+
//$$ ScreenKeyboardEvents.allowKeyPress(screen).register((screen1, keyInput) -> {
174+
//$$ return !handleKeyTyped(keyInput.key());
175+
//$$ });
176+
//#else
169177
//$$ ScreenMouseEvents.allowMouseClick(screen).register((screen1, mouseX, mouseY, button) -> {
170178
//$$ return !handleMouseClick(mouseX, mouseY);
171179
//$$ });
172180
//$$ ScreenKeyboardEvents.allowKeyPress(screen).register((screen1, key, scancode, modifiers) -> {
173181
//$$ return !handleKeyTyped(key);
174182
//$$ });
183+
//#endif
175184
//$$ }));
176185
//$$ }
177186
//#else
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
essential.defaults.loom.mappings=net.fabricmc:yarn:1.21.9+build.1:v2
2+
# Required because our Loom doesn't yet support the unpick version included in the above yarn version
3+
essential.loom.disableUnpick=true

0 commit comments

Comments
 (0)