magma no longer damages player on halfslabs
This commit is contained in:
parent
fac88fc53d
commit
9cd454f9d7
|
@ -31,8 +31,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
if timer >= 0.3 then
|
if timer >= 0.3 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