remove abm, all status changes happen due to inventory movements

This commit is contained in:
Isidor Zeuner 2020-07-20 01:44:34 +02:00
parent 55597c809b
commit 3d6f6be190

@ -305,20 +305,6 @@ minetest.register_node("currency:shop_empty", {
end
})
minetest.register_abm(
{
label = "shop stock check",
nodenames = {
"currency:shop",
"currency:shop_empty",
},
interval = 1,
chance = 256,
catch_up = false,
action = check_stock,
}
)
minetest.register_on_player_receive_fields(function(sender, formname, fields)
if formname == "currency:shop_formspec" and fields.exchange ~= nil and fields.exchange ~= "" then
local name = sender:get_player_name()