npc_gives no longer requires an explicit click on 'Done'

This commit is contained in:
Sokomine 2022-10-01 21:04:43 +02:00
parent 712f19656e
commit 045f9b51f0

View File

@ -11,6 +11,10 @@ yl_speak_up.action_inv_changed = function(inv, listname, index, stack, player, h
-- if not in edit mode: the player may just be normally interacting with the NPC;
-- nothing to do for us here (wait for the player to click on "save")
if(not(n_id) or yl_speak_up.edit_mode[pname] ~= n_id) then
if(listname and listname == "npc_gives") then
yl_speak_up.input_fs_action_npc_gives(player, "action_npc_gives", {})
return
end
return
end
-- is the player in the process of editing an action of the npc_gives/npc_wants type?