Fix alternate button not working in some cases

This commit is contained in:
Paul Ouellette 2019-01-02 00:39:05 -05:00
parent 1034fd7c0e
commit f8b7a72635

View File

@ -592,7 +592,7 @@ local function get_fields(player, ...)
show_fs(player, player_name)
elseif fields.alternate then
if (data.usages and #data.usages == 1) or #data.recipes_item == 1 then
if #(data.show_usage and data.usages or data.recipes_item) == 1 then
return
end