Skip to content

Commit ba98b24

Browse files
committed
Fix rare crash?
1 parent 26ecb38 commit ba98b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mods/other/crafting/gui.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function crafting.result_select_on_receive_results(player, context, fields)
150150
elseif fields.next then
151151
context.crafting_page = (context.crafting_page or 1) + 1
152152
return true
153-
elseif fields.search or fields.key_enter_field == "query" then
153+
elseif fields.search or fields.key_enter_field == "query" and fields.query then
154154
context.crafting_query = fields.query:trim():lower()
155155
context.crafting_page = 1
156156
if context.crafting_query == "" then

0 commit comments

Comments
 (0)