File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed
src/main/java/dev/chachy/lazylanguageloader/client/mixin/ui/searchbar Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ java {
1010 withSourcesJar()
1111}
1212
13- version = " 0.3.4 "
13+ version = " 0.3.5 "
1414group = " dev.chachy"
1515
1616dependencies {
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
2222processResources {
@@ -34,7 +34,7 @@ tasks.withType(JavaCompile).configureEach {
3434
3535jar {
3636 from(" LICENSE" ) {
37- rename { " ${ it} _${ project.archivesBaseName } " }
37+ rename { " ${ it} _${ project.name } " }
3838 }
3939}
4040
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments