Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created March 25, 2014 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/9773601 to your computer and use it in GitHub Desktop.
Save PilzAdam/9773601 to your computer and use it in GitHub Desktop.
diff --git a/builtin/falling.lua b/builtin/falling.lua
index c8f3bc5..dc9e48e 100644
--- a/builtin/falling.lua
+++ b/builtin/falling.lua
@@ -181,8 +181,12 @@ function nodeupdate_single(p, delay)
if minetest.get_node_group(n.name, "attached_node") ~= 0 then
if not check_attached_node(p, n) then
- drop_attached_node(p)
- nodeupdate(p)
+ if delay then
+ minetest.after(0.1, nodeupdate_single, {x=p.x, y=p.y, z=p.z}, false)
+ else
+ drop_attached_node(p)
+ nodeupdate(p)
+ end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment