aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPilzAdam <PilzAdam@gmx.de>2013-01-12 20:49:55 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-01-12 20:55:45 +0100
commit443bbe6a785721bcaedf02f26c8a32d98ba63aec (patch)
treeb63201205398b9ab44ebdf37b43a04c9791e33e3 /builtin
parent183c81b5ecf4f9350936737f5091073d81733d73 (diff)
downloadminetest-443bbe6a785721bcaedf02f26c8a32d98ba63aec.tar.gz
minetest-443bbe6a785721bcaedf02f26c8a32d98ba63aec.tar.bz2
minetest-443bbe6a785721bcaedf02f26c8a32d98ba63aec.zip
Fix spread of items in falling code
Diffstat (limited to 'builtin')
-rw-r--r--builtin/falling.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/falling.lua b/builtin/falling.lua
index 903c5dfd0..d3af36f29 100644
--- 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