diff options
| author | JPG <jeanpatrick.guerrero@gmail.com> | 2016-12-16 03:17:15 +0100 | 
|---|---|---|
| committer | JPG <jeanpatrick.guerrero@gmail.com> | 2016-12-16 03:17:15 +0100 | 
| commit | d35f525c4fe27ac530587d1f63e00170add6271e (patch) | |
| tree | 8a2b715b017b588ed63c14150be956b6369d0301 | |
| parent | 628f59b89e8a5ac43868ea174f8a6b6a7057fe8a (diff) | |
Fix variable shadowing
| -rw-r--r-- | init.lua | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -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 | 
