Fix incorrect formspec name which caused exchanges not to work
This commit is contained in:
parent
71ce813207
commit
36eeacf4fc
@ -157,8 +157,8 @@ for i, tree_name in ipairs(realtest.registered_trees_list) do
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_on_player_receive_fields(function(sender, formname, fields)
|
||||
if formname == "currency:shop_formspec" and fields.exchange ~= nil and fields.exchange ~= "" then
|
||||
minetest.register_on_player_receive_fields(function(sender, formname, fields)
|
||||
if formname == "money:shop_formspec" and fields.exchange ~= nil and fields.exchange ~= "" then
|
||||
local name = sender:get_player_name()
|
||||
local pos = default.shop.current_shop[name]
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user