Skip to content

Commit a09181c

Browse files
committed
port: click events to 1.21.5
1 parent 9e04de1 commit a09181c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/client/java/dev/isxander/debugify/client/gui/NoYACLScreen.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import net.minecraft.network.chat.Style;
1212
import net.minecraft.util.FormattedCharSequence;
1313
import net.minecraft.util.Mth;
14-
import com.mojang.blaze3d.vertex.PoseStack;
14+
15+
import java.net.URI;
1516
import java.util.List;
1617

1718
public class NoYACLScreen extends Screen {
@@ -27,10 +28,10 @@ public NoYACLScreen(Screen parent) {
2728
this.title = Component.translatable("debugify.no_yacl.title").withStyle(ChatFormatting.BOLD).getVisualOrderText();
2829
this.unwrappedText = Component.translatable("debugify.no_yacl.description",
2930
Component.literal("YetAnotherConfigLib").withStyle(style -> style
30-
.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://curseforge.com/minecraft/mc-mods/yacl"))
31+
.withClickEvent(new ClickEvent.OpenUrl(URI.create("https://curseforge.com/minecraft/mc-mods/yacl")))
3132
.applyFormats(ChatFormatting.BLUE, ChatFormatting.UNDERLINE)),
3233
Component.literal(".minecraft/config/debugify.json").withStyle(style -> style
33-
.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_FILE, FabricLoader.getInstance().getConfigDir().toString()))
34+
.withClickEvent(new ClickEvent.OpenFile(FabricLoader.getInstance().getConfigDir()))
3435
.applyFormats(ChatFormatting.BLUE, ChatFormatting.UNDERLINE)));
3536
}
3637

0 commit comments

Comments
 (0)