Created
March 25, 2014 23:21
-
-
Save PilzAdam/9773601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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