From ba98b24955ec5610648058dbd322d087447d8de6 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Sat, 24 Feb 2024 13:23:37 -0800 Subject: [PATCH] Fix rare crash? --- mods/other/crafting/gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/crafting/gui.lua b/mods/other/crafting/gui.lua index 26cca5033c..2f14533096 100644 --- a/mods/other/crafting/gui.lua +++ b/mods/other/crafting/gui.lua @@ -150,7 +150,7 @@ function crafting.result_select_on_receive_results(player, context, fields) elseif fields.next then context.crafting_page = (context.crafting_page or 1) + 1 return true - elseif fields.search or fields.key_enter_field == "query" then + elseif fields.search or fields.key_enter_field == "query" and fields.query then context.crafting_query = fields.query:trim():lower() context.crafting_page = 1 if context.crafting_query == "" then