Skip to content

Commit a560e3c

Browse files
committed
feat: support for 1.20.3, 1.20.4
1 parent 67c6c71 commit a560e3c

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ java {
1010
withSourcesJar()
1111
}
1212

13-
version = "0.3.4"
13+
version = "0.3.5"
1414
group = "dev.chachy"
1515

1616
dependencies {
17-
minecraft "com.mojang:minecraft:1.20.2"
18-
mappings "net.fabricmc:yarn:1.20.2+build.1:v2"
19-
modImplementation "net.fabricmc:fabric-loader:0.14.22"
17+
minecraft "com.mojang:minecraft:1.20.4"
18+
mappings "net.fabricmc:yarn:1.20.4+build.1:v2"
19+
modImplementation "net.fabricmc:fabric-loader:0.15.0"
2020
}
2121

2222
processResources {
@@ -34,7 +34,7 @@ tasks.withType(JavaCompile).configureEach {
3434

3535
jar {
3636
from("LICENSE") {
37-
rename { "${it}_${project.archivesBaseName}" }
37+
rename { "${it}_${project.name}" }
3838
}
3939
}
4040

src/main/java/dev/chachy/lazylanguageloader/client/mixin/ui/searchbar/MixinLanguageOptionsScreen.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@ protected MixinLanguageOptionsScreen(Text title) {
3434
super(title);
3535
}
3636

37-
@Inject(
38-
method = "init",
39-
at = @At(
40-
value = "INVOKE",
41-
target = "Lnet/minecraft/client/gui/screen/option/LanguageOptionsScreen;addSelectableChild(Lnet/minecraft/client/gui/Element;)Lnet/minecraft/client/gui/Element;",
42-
shift = At.Shift.AFTER
43-
)
44-
)
37+
@Inject(method = "init", at = @At("TAIL"))
4538
private void lazyLanguageLoader$$init(CallbackInfo ci) {
4639
initialComponents = new ArrayList<>(languageSelectionList.children());
4740

@@ -59,7 +52,7 @@ protected MixinLanguageOptionsScreen(Text title) {
5952
private void lazyLanguageLoader$$handleText(String text) {
6053
List<LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry> children = languageSelectionList.children();
6154

62-
if (text.isBlank() || text.isBlank()) {
55+
if (text.isBlank()) {
6356
int initialSize = initialComponents.size();
6457
int currentSize = children.size();
6558

@@ -119,6 +112,7 @@ protected MixinLanguageOptionsScreen(Text title) {
119112
}
120113
}
121114

115+
@Unique
122116
private String lazyLanguageLoader$$addTruncationMarker(String text, String marker) {
123117
return text.length() > marker.length() ? text.substring(0, text.length() - marker.length()) : marker;
124118
}

0 commit comments

Comments
 (0)