mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Fix another walkover bug
This commit is contained in:
parent
f746e2a0c6
commit
cbd8befb47
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ minetest.register_globalstep(function(dtime)
|
|||
timer = timer + dtime;
|
||||
if timer >= 0.3 then
|
||||
for _,player in pairs(minetest.get_connected_players()) do
|
||||
local loc = vector.add(vector.apply(player:getpos(), math.ceil), {x=0,y=-1,z=0})
|
||||
local pp = player:getpos()
|
||||
pp.y = math.ceil(pp.y)
|
||||
local loc = vector.add(pp, {x=0,y=-1,z=0})
|
||||
if loc ~= nil then
|
||||
|
||||
local nodeiamon = minetest.get_node(loc)
|
||||
|
|
Loading…
Reference in a new issue