mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 12:33:43 +01:00
Fix alternate button not working in some cases
This commit is contained in:
parent
1034fd7c0e
commit
f8b7a72635
2
init.lua
2
init.lua
@ -592,7 +592,7 @@ local function get_fields(player, ...)
|
|||||||
show_fs(player, player_name)
|
show_fs(player, player_name)
|
||||||
|
|
||||||
elseif fields.alternate then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user