Skip to content

Commit 009ce1c

Browse files
authored
1.20.3 (#103)
* 1.20.3-pre2 * 1.20.3
1 parent 7f77443 commit 009ce1c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
}
1414

1515
group = "org.enginehub.worldeditcui"
16-
version = "${libs.versions.minecraft.get()}+02-SNAPSHOT"
16+
version = "${libs.versions.minecraft.get()}+01-SNAPSHOT"
1717

1818
repositories {
1919
// mirrors:

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ format = { version = "1.1" }
33

44
[versions]
55
indra = "3.1.3"
6-
minecraft = "1.20.2"
7-
fabricLoader = "0.14.24"
8-
fabricApi = "0.90.7+1.20.2"
9-
modmenu = "8.0.0"
6+
minecraft = "1.20.3"
7+
fabricLoader = "0.15.0"
8+
fabricApi = "0.91.1+1.20.3"
9+
modmenu = "9.0.0-pre.1"
1010
multiconnect = "1.5.10"
1111
viafabricplus = "2.9.0"
1212
vineflower = "1.9.3"

src/main/java/org/enginehub/worldeditcui/gui/CUIConfigList.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class CUIConfigList extends ContainerObjectSelectionList<CUIConfigList.Co
3535
int maxNameWidth = 0;
3636

3737
public CUIConfigList(CUIConfigPanel panel, Minecraft minecraft) {
38-
super(minecraft, panel.width + 45, panel.height, 20, panel.height - 32, 25);
38+
super(minecraft, panel.width + 45, panel.height - 60, 25, 25);
3939
this.configuration = panel.configuration;
4040
this.setRenderBackground(minecraft.level == null);
4141

@@ -123,11 +123,11 @@ public ColorConfigEntry(String tag) {
123123
if (colorSource.length() != 9) {
124124
return FormattedCharSequence.forward(string, invalidFormat);
125125
}
126-
TextColor parsed = TextColor.parseColor(colorSource.substring(0, 7));
127-
if (parsed == null) {
128-
return FormattedCharSequence.forward(string, invalidFormat);
129-
}
130-
return FormattedCharSequence.forward(string, Style.EMPTY.withColor(parsed));
126+
return TextColor.parseColor(colorSource.substring(0, 7))
127+
.map(color -> FormattedCharSequence.forward(string, Style.EMPTY.withColor(color)))
128+
.get()
129+
.left()
130+
.orElseGet(() -> FormattedCharSequence.forward(string, invalidFormat));
131131
});
132132
textField.setFilter(value -> {
133133
// filter for #AARRGGBB

0 commit comments

Comments
 (0)