summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-01 12:02:03 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-01 12:02:03 -0700
commit12748d2f89cc94f95c5132e8127fe9f5e21c17b8 (patch)
treed4877633e5ad8c51a9c62d290be1c517538c8629
parentc6d715d8872eca52376089e99f7cd3e9d23dab58 (diff)
add a check for falling_nodes to make stuff fall after the digtron has passed
-rw-r--r--node_controllers.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/node_controllers.lua b/node_controllers.lua
index 07b84fb..87e5371 100644
--- a/node_controllers.lua
+++ b/node_controllers.lua
@@ -222,6 +222,9 @@ minetest.register_node("digtron:controller", {
if whether_to_dig == true then
minetest.remove_node(node_to_dig)
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()
end
end,