allow to create d_got_item again

This commit is contained in:
Sokomine 2024-12-15 12:08:45 +01:00
parent 498e58cd72
commit 5e477b0b3e

View File

@ -30,7 +30,7 @@ yl_speak_up.input_talk = function(player, formname, fields)
local result = yl_speak_up.edit_mode_apply_changes(pname, fields)
-- o is only nil if the old function returned nil; it does that
-- when it found a fitting reaction to a button press
if(not(o) and not(fields.button_start_edit_mode)) then
if(not(o) and not(fields.button_start_edit_mode) and not(fields.player_offers_item)) then
return
end
local n_id = yl_speak_up.speak_to[pname].n_id