Skip to content

Commit

Permalink
Fixed #23 by moving setMaxLength to before setText
Browse files Browse the repository at this point in the history
  • Loading branch information
Chailotl committed Jul 13, 2024
1 parent 2c7fa8c commit 2c0b0e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c0b0e9

Please sign in to comment.