File tree Expand file tree Collapse file tree
src/client/java/dev/isxander/debugify/client/gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import net .minecraft .network .chat .Style ;
1212import net .minecraft .util .FormattedCharSequence ;
1313import net .minecraft .util .Mth ;
14- import com .mojang .blaze3d .vertex .PoseStack ;
14+
15+ import java .net .URI ;
1516import java .util .List ;
1617
1718public 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
You can’t perform that action at this time.
0 commit comments