Fix variable shadowing

This commit is contained in:
JPG 2016-12-16 03:17:15 +01:00
parent 628f59b89e
commit d35f525c4f

@ -110,12 +110,12 @@ function craftguide:get_recipe(player_name, tooltip_l, item, recipe_num, recipes
local groups = extract_groups(v) local groups = extract_groups(v)
local label = groups and "\nG" or "" local label = groups and "\nG" or ""
local item = self:group_to_item(v) local item_r = self:group_to_item(v)
local tooltip = self:get_tooltip(item, recipe_type, width, groups) local tooltip = self:get_tooltip(item_r, recipe_type, width, groups)
formspec = formspec.."item_image_button["..X..","..Y..";".. formspec = formspec.."item_image_button["..X..","..Y..";"..
btn_size..","..btn_size..";".. btn_size..","..btn_size..";"..
item..";"..item..";"..label.."]"..tooltip item_r..";"..item_r..";"..label.."]"..tooltip
end end
end end
local output = recipes[recipe_num].output local output = recipes[recipe_num].output