From a97d88bf0838fdecbcb487a7c8e8cbd44680fbcc Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Tue, 20 Apr 2021 19:52:07 +0500 Subject: [PATCH] Update init.lua --- shooter_rocket/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shooter_rocket/init.lua b/shooter_rocket/init.lua index c42c1a9..7cbad3f 100644 --- a/shooter_rocket/init.lua +++ b/shooter_rocket/init.lua @@ -138,7 +138,8 @@ end local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime - if timer >= 0.1 then + if timer >= 1 then + timer = 0 for _, player in ipairs(minetest.get_connected_players()) do local name = player and player:get_player_name() local wielditem = player:get_wielded_item() @@ -147,7 +148,6 @@ minetest.register_globalstep(function(dtime) player:set_physics_override({ speed = 0.7 }) - timer = 0 end end end