mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 23:03:45 +01:00
walkover globalstep timer changed to align with mc time for damage and other actions
This commit is contained in:
parent
9cd454f9d7
commit
93e0e0607e
@ -28,7 +28,7 @@ end)
|
|||||||
local timer = 0
|
local timer = 0
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
timer = timer + dtime
|
timer = timer + dtime
|
||||||
if timer >= 0.3 then
|
if timer >= 0.6 then
|
||||||
for _, player in pairs(get_connected_players()) do
|
for _, player in pairs(get_connected_players()) do
|
||||||
local ppos = player:get_pos()
|
local ppos = player:get_pos()
|
||||||
local npos = vector.add(ppos, vector.new(0, -0.1, 0))
|
local npos = vector.add(ppos, vector.new(0, -0.1, 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user