mirror of
https://github.com/mt-mods/currency.git
synced 2024-11-19 19:13:44 +01:00
remove abm, all status changes happen due to inventory movements
This commit is contained in:
parent
55597c809b
commit
3d6f6be190
14
shop.lua
14
shop.lua
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user