forked from VoxeLibre/VoxeLibre
Merge pull request 'Walkover mod: fix walkover being triggered even when standing far above the block' (#2496) from SumianVoice/MineClone2_c:better_magma_damage into master
Reviewed-on: MineClone2/MineClone2#2496 Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
f57ec267c6
|
@ -28,11 +28,10 @@ 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()
|
||||||
ppos.y = ceil(ppos.y)
|
local npos = vector.add(ppos, vector.new(0, -0.1, 0))
|
||||||
local npos = vector.add(ppos, vector.new(0, -1, 0))
|
|
||||||
if npos then
|
if npos then
|
||||||
local node = get_node(npos)
|
local node = get_node(npos)
|
||||||
if node then
|
if node then
|
||||||
|
|
Loading…
Reference in New Issue