Skip to content

Commit

Permalink
Fix rare crash?
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Feb 24, 2024
1 parent 26ecb38 commit ba98b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/other/crafting/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba98b24

Please sign in to comment.