mirror of
https://github.com/minetest-mods/craftguide.git
synced 2025-08-11 11:10:22 +02:00
Fix alternate button not working in some cases
This commit is contained in:
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user