don't store no group selected for player_offered_item

This commit is contained in:
Sokomine 2022-01-04 23:01:16 +01:00
parent 42233f59a1
commit 127263813e

View File

@ -657,7 +657,8 @@ yl_speak_up.save_element_p_or_a_or_e = function(
"button[1.5,2.0;2,0.9;back_from_error_msg;Back]"})
return
end
if(data.item_group and data.item_group ~= "") then
if(data.item_group and data.item_group ~= ""
and data.item_group ~= "- no, just this one item -") then
v["p_item_group"] = data.item_group
end
local player_inv = player:get_inventory()