Fix spread of items in falling code

This commit is contained in:
PilzAdam 2013-01-12 20:49:55 +01:00 committed by Nils Dagsson Moskopp
parent 42e67c79c1
commit 279833455c
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 3 deletions

View File

@ -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