summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 03:17:15 +0100
committerJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 03:17:15 +0100
commitd35f525c4fe27ac530587d1f63e00170add6271e (patch)
tree8a2b715b017b588ed63c14150be956b6369d0301
parent628f59b89e8a5ac43868ea174f8a6b6a7057fe8a (diff)
Fix variable shadowing
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 9f64909..dc9e219 100644
--- a/init.lua
+++ b/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