Enable craft guide button for furnaces (#4732)

Seems to work, could not identify the problem from 2020.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4732
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
kno10 2024-12-05 20:05:32 +01:00 committed by the-real-herowl
parent a55293d893
commit 38561d2a5d
3 changed files with 21 additions and 27 deletions

@ -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

@ -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

@ -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