projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5a8448
)
Add a delay to nodeupdate()
author
PilzAdam
<pilzadam@minetest.net>
Tue, 19 Mar 2013 15:46:26 +0000
(16:46 +0100)
committer
PilzAdam
<pilzadam@minetest.net>
Fri, 5 Apr 2013 00:24:39 +0000
(
02:24
+0200)
builtin/falling.lua
patch
|
blob
|
history
diff --git
a/builtin/falling.lua
b/builtin/falling.lua
index 1c09f98560fb298338f56e31e0b72c3d93eaa643..5ae51e76388ffcb64ed899b3ed9cdafba9ab27b0 100644
(file)
--- a/
builtin/falling.lua
+++ b/
builtin/falling.lua
@@
-170,12
+170,14
@@
function nodeupdate(p)
p.x = math.floor(p.x+0.5)
p.y = math.floor(p.y+0.5)
p.z = math.floor(p.z+0.5)
+ nodeupdate_single(p)
for x = -1,1 do
for y = -1,1 do
for z = -1,1 do
- p2 = {x=p.x+x, y=p.y+y, z=p.z+z}
- nodeupdate_single(p2)
+ if not (x==0 and y==0 and z==0) then
+ minetest.after(0.1, nodeupdate_single, {x=p.x+x, y=p.y+y, z=p.z+z})
+ end
end
end
end