From c804c26cd9565906e27ae697a3eede46f481b90f Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Tue, 23 Feb 2016 18:24:27 +0100 Subject: [PATCH] Craft guide : fix wrong param name on fields callback --- craftguide.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/craftguide.lua b/craftguide.lua index 17c85ba..0695f81 100644 --- a/craftguide.lua +++ b/craftguide.lua @@ -106,8 +106,8 @@ function craftguide:get_items(filter, player_name) return items_list end -minetest.register_on_player_receive_fields(function(player, listname, fields) - if listname ~= "xdecor:crafting_guide" then return end +minetest.register_on_player_receive_fields(function(player, formname, fields) + if formname ~= "xdecor:crafting_guide" then return end local player_name = player:get_player_name() local stack = player:get_wielded_item() local formspec = datas[player_name].formspec