2019-09-09 07:05:01 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2020-01-10 21:11:52 -05:00
|
|
|
local minetest, nodecore, pairs, vector
|
|
|
|
= minetest, nodecore, pairs, vector
|
2019-09-09 07:05:01 -04:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local queue
|
|
|
|
|
|
|
|
function nodecore.fallcheck(pos)
|
|
|
|
if not queue then
|
|
|
|
queue = {}
|
|
|
|
minetest.after(0, function()
|
|
|
|
for _, p in pairs(queue) do
|
|
|
|
minetest.check_for_falling(p)
|
|
|
|
end
|
2019-09-09 07:05:31 -04:00
|
|
|
queue = nil
|
2019-09-09 07:05:01 -04:00
|
|
|
end)
|
|
|
|
end
|
2020-01-10 21:11:52 -05:00
|
|
|
pos = vector.round(pos)
|
|
|
|
queue[minetest.hash_node_position(pos)] = pos
|
2019-09-09 07:05:01 -04:00
|
|
|
end
|