Skip to content

Commit

Permalink
slight text box widget improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 10, 2023
1 parent f9a28e6 commit 084c7d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected TextBoxWidget(@NotNull GuiInstance gui, @Nullable IGuiElement parent,
}

public static WidgetSupplier build(BiConsumer<IGuiHandler, String> consumer) {
return builder((i, p) -> new ProgressWidget(i, p));
return builder((i, p) -> new TextBoxWidget(i, p, consumer));
}

@Override
Expand All @@ -47,7 +47,7 @@ public void init() {
}

@Environment(EnvType.CLIENT)
private void initTextBox(){
protected void initTextBox(){
textBox = new EditBox(Minecraft.getInstance().font, this.getX(), this.getY(), this.getW(), this.getH(), Utils.literal(""));
this.textBox.setMaxLength(32500);
}
Expand Down

0 comments on commit 084c7d5

Please sign in to comment.