mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Fix wrong param name on fields callback
This commit is contained in:
parent
47178406c5
commit
3ffc1d9bdc
4
init.lua
4
init.lua
@ -107,8 +107,8 @@ function craftguide:get_items(filter, player_name)
|
|||||||
return items_list
|
return items_list
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, listname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if listname ~= "xdecor:crafting_guide" then return end
|
if formname ~= "xdecor:crafting_guide" then return end
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
local stack = player:get_wielded_item()
|
local stack = player:get_wielded_item()
|
||||||
local formspec = datas[player_name].formspec
|
local formspec = datas[player_name].formspec
|
||||||
|
Loading…
Reference in New Issue
Block a user