Fix incorrect formspec name which caused exchanges not to work

This commit is contained in:
Vanessa Ezekowitz 2013-11-30 11:46:32 -05:00
parent 71ce813207
commit 36eeacf4fc

View File

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