use check_for_falling if 5.0.0-dev

* takend from poikilos fork of oldcoder fix on older engines using 0.4.15
  commit 955a6e3dc4
main
mckaygerhard 2024-03-21 05:43:04 -04:00
parent dfd03b56c6
commit e947488c24
1 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,10 @@ local trap_on_timer = function(pos, elapsed)
end
if n.name == "tsm_pyramids:trap" then
minetest.set_node(pos, {name="tsm_pyramids:trap_2"})
minetest.check_for_falling(pos)
if minetest.check_for_falling ~= nil then minetest.check_for_falling(pos) else nodeupdate(pos) end
elseif n.name == "tsm_pyramids:desert_trap" then
minetest.set_node(pos, {name="tsm_pyramids:desert_trap_2"})
minetest.check_for_falling(pos)
if minetest.check_for_falling ~= nil then minetest.check_for_falling(pos) else nodeupdate(pos) end
end
return true
end