el timer se resetea independientemente de si se efectua el cobro

This commit is contained in:
GNU Hacker 2021-12-16 20:24:40 +01:00
parent b5d774e73e
commit dd0eed7ab8

@ -159,12 +159,12 @@ core.register_node("emeraldbank:shop", {
local meta = core.get_meta(pos) local meta = core.get_meta(pos)
local owner = meta:get_string("owner") local owner = meta:get_string("owner")
local is_online = core.player_exists(owner) local is_online = core.player_exists(owner)
core.get_node_timer(pos):start(shop_timer)
if is_online then if is_online then
local player = core.get_player_by_name(owner) local player = core.get_player_by_name(owner)
if not player or player.is_fake_player then return end if not player or player.is_fake_player then return end
get_stonks(pos, player) get_stonks(pos, player)
end end
core.get_node_timer(pos):start(shop_timer)
end, end,
can_dig = function(pos, player) can_dig = function(pos, player)