From 2c0b0e99464a55c49bf62e855a9c3529b0188079 Mon Sep 17 00:00:00 2001 From: Chai <7232280+Chailotl@users.noreply.github.com> Date: Sat, 13 Jul 2024 19:03:53 -0400 Subject: [PATCH] Fixed #23 by moving setMaxLength to before setText --- .../client/gui/screen/ingame/HyperlinkBlockEditScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/HyperlinkBlockEditScreen.java b/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/HyperlinkBlockEditScreen.java index db8fd90..e76dd6c 100644 --- a/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/HyperlinkBlockEditScreen.java +++ b/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/HyperlinkBlockEditScreen.java @@ -25,8 +25,8 @@ public void init() { if (this.client == null) return; this.urlEntryWidget = new TextFieldWidget(this.client.textRenderer, width / 10, height / 2 - 10, 8 * width / 10, 20, Text.empty()); - this.urlEntryWidget.setText(this.hyperlinkBlockEntity.getUrl()); this.urlEntryWidget.setMaxLength(Integer.MAX_VALUE); + this.urlEntryWidget.setText(this.hyperlinkBlockEntity.getUrl()); this.addDrawableChild(this.urlEntryWidget); }