summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpauloue <oue.paul18@gmail.com>2018-11-18 18:24:32 +0100
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>2018-11-18 18:26:09 +0100
commit6d3f8ce32abc6412343386af020ef2347468d44f (patch)
tree981da1d033809a2cfe8062813614ccfb17f3df16
parented861ea1b9b063acbe5c423e01d9ae88e69f07bc (diff)
Fix cooktime tooltip
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a2fafd5..d3bda44 100644
--- a/init.lua
+++ b/init.lua
@@ -131,6 +131,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
(icon == "shapeless" and "^[transformFX" or "") .. "]"
end
+ local cooktime = width
if recipe_type == "cooking" then
width = 1
elseif width == 0 then
@@ -157,7 +158,7 @@ function craftguide:get_recipe(iX, iY, xoffset, recipe_num, recipes, show_usage)
local groups = extract_groups(v)
local label = groups and "\nG" or ""
local item_r = self:group_to_item(v)
- local tltip = self:get_tooltip(item_r, recipe_type, width, groups)
+ local tltip = self:get_tooltip(item_r, recipe_type, cooktime, groups)
formspec = formspec ..
"item_image_button[" .. X .. "," ..