mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-19 21:33:43 +01:00
add a check for falling_nodes to make stuff fall after the digtron has passed
This commit is contained in:
parent
c6d715d887
commit
12748d2f89
@ -222,6 +222,9 @@ minetest.register_node("digtron:controller", {
|
|||||||
if whether_to_dig == true then
|
if whether_to_dig == true then
|
||||||
minetest.remove_node(node_to_dig)
|
minetest.remove_node(node_to_dig)
|
||||||
end
|
end
|
||||||
|
-- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick
|
||||||
|
-- a check to make sand fall after the digtron has passed.
|
||||||
|
minetest.check_for_falling({x=node_to_dig.x, y=node_to_dig.y+1, z=node_to_dig.z})
|
||||||
node_to_dig, whether_to_dig = nodes_dug:pop()
|
node_to_dig, whether_to_dig = nodes_dug:pop()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user