projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183c81b
)
Fix spread of items in falling code
author
PilzAdam
<PilzAdam@gmx.de>
Sat, 12 Jan 2013 19:49:55 +0000
(20:49 +0100)
committer
PilzAdam
<PilzAdam@gmx.de>
Sat, 12 Jan 2013 19:55:45 +0000
(20:55 +0100)
builtin/falling.lua
patch
|
blob
|
history
diff --git
a/builtin/falling.lua
b/builtin/falling.lua
index 903c5dfd0c6b281dbe2eec83478ea979d6d77026..d3af36f2934c823225a28076ad8b3d52d85e31fd 100644
(file)
--- a/
builtin/falling.lua
+++ b/
builtin/falling.lua
@@
-96,9
+96,9
@@
function drop_attached_node(p)
minetest.env:remove_node(p)
for _,item in ipairs(minetest.get_node_drops(nn, "")) do
local pos = {
- x = p.x + math.random(
60)/60-0.3
,
- y = p.y + math.random(
60)/60-0.3
,
- z = p.z + math.random(
60)/60-0.3
,
+ x = p.x + math.random(
)/2 - 0.25
,
+ y = p.y + math.random(
)/2 - 0.25
,
+ z = p.z + math.random(
)/2 - 0.25
,
}
minetest.env:add_item(pos, item)
end