magma no longer damages player on halfslabs

This commit is contained in:
Sumyjkl 2022-07-26 23:16:14 +10:00
parent fac88fc53d
commit 9cd454f9d7

View file

@ -31,8 +31,7 @@ minetest.register_globalstep(function(dtime)
if timer >= 0.3 then
for _, player in pairs(get_connected_players()) do
local ppos = player:get_pos()
ppos.y = ceil(ppos.y)
local npos = vector.add(ppos, vector.new(0, -1, 0))
local npos = vector.add(ppos, vector.new(0, -0.1, 0))
if npos then
local node = get_node(npos)
if node then