diff --git a/mods/ITEMS/mcl_blast_furnace/init.lua b/mods/ITEMS/mcl_blast_furnace/init.lua index 224ee0869..f19f4aa21 100644 --- a/mods/ITEMS/mcl_blast_furnace/init.lua +++ b/mods/ITEMS/mcl_blast_furnace/init.lua @@ -34,10 +34,9 @@ local function active_formspec(fuel_percent, item_percent) mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -72,10 +71,9 @@ local inactive_formspec = table.concat({ mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -87,7 +85,7 @@ local inactive_formspec = table.concat({ local receive_fields = function(pos, formname, fields, sender) - if fields.craftguide then + if fields.__mcl_craftguide then mcl_craftguide.show(sender:get_player_name()) end end diff --git a/mods/ITEMS/mcl_furnaces/init.lua b/mods/ITEMS/mcl_furnaces/init.lua index c989de125..58f319164 100644 --- a/mods/ITEMS/mcl_furnaces/init.lua +++ b/mods/ITEMS/mcl_furnaces/init.lua @@ -36,10 +36,9 @@ local function active_formspec(fuel_percent, item_percent) mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -74,10 +73,9 @@ local inactive_formspec = table.concat({ mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -89,7 +87,7 @@ local inactive_formspec = table.concat({ local receive_fields = function(pos, formname, fields, sender) - if fields.craftguide then + if fields.__mcl_craftguide then mcl_craftguide.show(sender:get_player_name()) end end diff --git a/mods/ITEMS/mcl_smoker/init.lua b/mods/ITEMS/mcl_smoker/init.lua index 8cfe2a613..ca5a88d0d 100644 --- a/mods/ITEMS/mcl_smoker/init.lua +++ b/mods/ITEMS/mcl_smoker/init.lua @@ -34,10 +34,9 @@ local function active_formspec(fuel_percent, item_percent) mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -72,10 +71,9 @@ local inactive_formspec = table.concat({ mcl_formspec.get_itemslot_bg_v4(0.375, 9.05, 9, 1), "list[current_player;main;0.375,9.05;9,1;]", - -- Craft guide button temporarily removed due to Luanti bug. - -- TODO: Add it back when the Luanti bug is fixed. - --"image_button[8,0;1,1;craftguide_book.png;craftguide;]".. - --"tooltip[craftguide;"..minetest.formspec_escape(S("Recipe book")).."]".. + --Crafting guide button + "image_button[0.325,1.95;1.1,1.1;craftguide_book.png;__mcl_craftguide;]", + "tooltip[__mcl_craftguide;" .. F(S("Recipe book")) .. "]", "listring[context;dst]", "listring[current_player;main]", @@ -87,7 +85,7 @@ local inactive_formspec = table.concat({ local receive_fields = function(pos, formname, fields, sender) - if fields.craftguide then + if fields.__mcl_craftguide then mcl_craftguide.show(sender:get_player_name()) end end