[walkover] fix warnings

This commit is contained in:
AFCMS 2021-05-25 00:55:14 +02:00
parent 0d13e1ffdd
commit 36f3c26139
1 changed files with 14 additions and 17 deletions

View File

@ -35,9 +35,7 @@ minetest.register_globalstep(function(dtime)
pp.y = ceil(pp.y)
local loc = vector_add(pp, {x=0,y=-1,z=0})
if loc ~= nil then
local nodeiamon = get_node(loc)
if nodeiamon ~= nil then
if on_walk[nodeiamon.name] then
on_walk[nodeiamon.name](loc, nodeiamon, player)
@ -48,7 +46,6 @@ minetest.register_globalstep(function(dtime)
end
end
end
timer = 0
end
end)