summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-11 18:03:54 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-11 18:03:54 +0100
commitfd34166855a86bc8e4a4fa52781c67679ffa9036 (patch)
treed55a69b1a2f26abe63d73d1b86b2ee1f3e059cc4
parent9c8ae2b69a865507faf649c202b6b793e78c06e3 (diff)
Don't show detailed tooltips in main list
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 0656619..88d3b1a 100644
--- a/init.lua
+++ b/init.lua
@@ -141,7 +141,7 @@ function craftguide:get_formspec(player_name)
local Y = ((i % npp - X) / 8) + 1
formspec = formspec.."item_image_button["..X..","..Y..";1,1;"..
- name..";"..name..";]"
+ name..";"..name.."_inv;]"
end
if data.item and minetest.registered_items[data.item] then
@@ -194,7 +194,6 @@ function craftguide:recipe_in_inv(player_name, item_name)
end
end
end
-
if not group_in_inv and not inv:contains_item("main", item) then
T[i] = false
end
@@ -254,6 +253,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
elseif data.pagenum == 0 then data.pagenum = data.pagemax end
craftguide:get_formspec(player_name)
else for item in pairs(fields) do
+ item = item:sub(1,-5)
local is_fuel = minetest.get_craft_result({
method="fuel", width=1, items={item}}).time > 0
if minetest.get_craft_recipe(item).items or is_fuel then