fix copy&paste issue

This commit is contained in:
Alexander Weber 2020-08-31 08:25:36 +02:00
parent 6cf900f31d
commit 7a59468419

View File

@ -87,7 +87,7 @@ smart_sfinv_api.register_enhancement({
for idx = 1, last_button do for idx = 1, last_button do
local def = sfinv_buttons.registered_buttons[idx] local def = sfinv_buttons.registered_buttons[idx]
if def and fields[def.button_name] and def.action then if def and fields[def.button_name] and def.action then
def.action(player, context, content, show_inv) def.action(player, context, fields)
break break
end end
end end