aboutsummaryrefslogtreecommitdiff
path: root/src/client/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-03-15 17:51:31 +0000
committerisXander <xandersmith2008@gmail.com>2023-03-15 17:51:31 +0000
commitc8a86cff89aa9072b6917c628406d3a06f4934ae (patch)
tree3462127bd73289e8fc9dfe3f663bf91d86a43318 /src/client/java/dev/isxander
parent9e1221a735302e36434fac43579037f786d14479 (diff)
downloadYetAnotherConfigLib-c8a86cff89aa9072b6917c628406d3a06f4934ae.tar.gz
YetAnotherConfigLib-c8a86cff89aa9072b6917c628406d3a06f4934ae.tar.bz2
YetAnotherConfigLib-c8a86cff89aa9072b6917c628406d3a06f4934ae.zip
fix not being able to add a space at the end of search
Diffstat (limited to 'src/client/java/dev/isxander')
-rw-r--r--src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java b/src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java
index 103831d..1277c21 100644
--- a/src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java
+++ b/src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java
@@ -15,7 +15,7 @@ public class SearchFieldWidget extends EditBox {
public SearchFieldWidget(YACLScreen yaclScreen, Font font, int x, int y, int width, int height, Component text, Component emptyText) {
super(font, x, y, width, height, text);
setResponder(string -> update());
- setFilter(string -> !string.endsWith(" ") && !string.startsWith(" "));
+ setFilter(string -> !string.endsWith(" ") && !string.startsWith(" "));
this.yaclScreen = yaclScreen;
this.font = font;
this.emptyText = emptyText;