summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkilbith <kilbith@users.noreply.github.com>2016-02-23 18:30:41 +0100
committerkilbith <kilbith@users.noreply.github.com>2016-02-23 18:30:41 +0100
commit3ffc1d9bdcdf5d247d4814ad6ba675d0943b4717 (patch)
tree51737c5a5402dbcc4e9d84158c776014b6fd7cb8
parent47178406c5ca749489b3eddbff748fb35f230a3b (diff)
Fix wrong param name on fields callback
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index b65a0ca..f443d8c 100644
--- a/init.lua
+++ b/init.lua
@@ -107,8 +107,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