mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03:43 +01:00
Fix variable shadowing
This commit is contained in:
parent
628f59b89e
commit
d35f525c4f
6
init.lua
6
init.lua
@ -110,12 +110,12 @@ function craftguide:get_recipe(player_name, tooltip_l, item, recipe_num, recipes
|
||||
|
||||
local groups = extract_groups(v)
|
||||
local label = groups and "\nG" or ""
|
||||
local item = self:group_to_item(v)
|
||||
local tooltip = self:get_tooltip(item, recipe_type, width, groups)
|
||||
local item_r = self:group_to_item(v)
|
||||
local tooltip = self:get_tooltip(item_r, recipe_type, width, groups)
|
||||
|
||||
formspec = formspec.."item_image_button["..X..","..Y..";"..
|
||||
btn_size..","..btn_size..";"..
|
||||
item..";"..item..";"..label.."]"..tooltip
|
||||
item_r..";"..item_r..";"..label.."]"..tooltip
|
||||
end
|
||||
end
|
||||
local output = recipes[recipe_num].output
|
||||
|
Loading…
Reference in New Issue
Block a user