From dd0eed7ab8e91590dcc0f3a92cf60754e5ba7a93 Mon Sep 17 00:00:00 2001 From: GNU Hacker Date: Thu, 16 Dec 2021 20:24:40 +0100 Subject: [PATCH] el timer se resetea independientemente de si se efectua el cobro --- shop.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop.lua b/shop.lua index 817baa3..636ccec 100644 --- a/shop.lua +++ b/shop.lua @@ -159,12 +159,12 @@ core.register_node("emeraldbank:shop", { local meta = core.get_meta(pos) local owner = meta:get_string("owner") local is_online = core.player_exists(owner) + core.get_node_timer(pos):start(shop_timer) if is_online then local player = core.get_player_by_name(owner) if not player or player.is_fake_player then return end get_stonks(pos, player) end - core.get_node_timer(pos):start(shop_timer) end, can_dig = function(pos, player)