Update init.lua

This commit is contained in:
olliy 2021-04-20 19:52:07 +05:00 committed by GitHub
parent 0bdc630241
commit a97d88bf08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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