From c8a86cff89aa9072b6917c628406d3a06f4934ae Mon Sep 17 00:00:00 2001 From: isXander Date: Wed, 15 Mar 2023 17:51:31 +0000 Subject: fix not being able to add a space at the end of search --- src/client/java/dev/isxander/yacl/gui/SearchFieldWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit