From a438971494bff49c745be8befda680fb9b90075f Mon Sep 17 00:00:00 2001 From: ninjaguardian <110734253+ninjaguardian@users.noreply.github.com> Date: Sat, 1 Aug 2026 00:30:24 -0500 Subject: [PATCH] Fix stonecutter --- .../yacl3/gui/image/impl/DynamicTextureImage.java | 2 +- src/testmod/java/dev/isxander/yacl3/test/GuiTest.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/isxander/yacl3/gui/image/impl/DynamicTextureImage.java b/src/main/java/dev/isxander/yacl3/gui/image/impl/DynamicTextureImage.java index 372e3369..ef76ab0a 100644 --- a/src/main/java/dev/isxander/yacl3/gui/image/impl/DynamicTextureImage.java +++ b/src/main/java/dev/isxander/yacl3/gui/image/impl/DynamicTextureImage.java @@ -29,7 +29,7 @@ public DynamicTextureImage(NativeImage image, Identifier location, boolean textu RenderSystem.assertOnRenderThread(); this.image = image; - this.texture = new DynamicTexture(/*? if >=1.21.11 >>*/ /*location::toString,*/ image); + this.texture = new DynamicTexture(/*? if >=1.21.11 >>*/location::toString, image); // TODO 1.21.11 //? if <1.21.11 //this.texture.setFilter(textureFiltering, false); diff --git a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java index 2859f3a1..36e4e01a 100644 --- a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java +++ b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java @@ -90,7 +90,13 @@ private static Screen getFullTestSuite(Screen parent) { .append(Component.literal("b").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("b"))))) .append(Component.literal("c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("c"))))) .append(Component.literal("e").withStyle(style -> style.withHoverEvent(createTextHoverEvent(Component.literal("e"))))) - .append(Component.literal("click me").withStyle(style -> style.withClickEvent(new ClickEvent.OpenUrl(URI.create("https://isxander.dev"))))) + .append(Component.literal("click me").withStyle(style -> style.withClickEvent( + //? if >=1.21.5 { + new ClickEvent.OpenUrl(URI.create("https://isxander.dev")) + //?} else { + /*new ClickEvent(ClickEvent.Action.OPEN_URL, "https://isxander.dev") + *///?} + ))) ) .webpImage(imageSample("sample1.webp")) .build())