diff options
author | isXander <xandersmith2008@gmail.com> | 2023-03-15 17:51:31 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2023-03-15 17:51:31 +0000 |
commit | c8a86cff89aa9072b6917c628406d3a06f4934ae (patch) | |
tree | 3462127bd73289e8fc9dfe3f663bf91d86a43318 /src | |
parent | 9e1221a735302e36434fac43579037f786d14479 (diff) | |
download | YetAnotherConfigLib-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')
-rw-r--r-- | src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java | 2 |
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; |