From 960cf1082b88f3f6e79d39550673b3e4ceec3541 Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Sat, 11 Jan 2025 23:13:30 -0500 Subject: [PATCH] Add helper for GuiTextFieldGeneric.java -> setText() --- .../java/fi/dy/masa/malilib/gui/GuiTextFieldGeneric.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/fi/dy/masa/malilib/gui/GuiTextFieldGeneric.java b/src/main/java/fi/dy/masa/malilib/gui/GuiTextFieldGeneric.java index 03122352c7..3ae41cbcc1 100644 --- a/src/main/java/fi/dy/masa/malilib/gui/GuiTextFieldGeneric.java +++ b/src/main/java/fi/dy/masa/malilib/gui/GuiTextFieldGeneric.java @@ -100,4 +100,10 @@ public void renderWidget(DrawContext context, int mouseX, int mouseY, float delt super.renderWidget(context, mouseX, mouseY, delta); } } + + // For compat reasons + public void setTextWrapper(String text) + { + this.setText(text); + } }