Skip to content
Permalink
Browse files

Fix spread of items in falling code

  • Loading branch information
CSPS-HaydenWoods committed Jan 12, 2013
1 parent 183c81b commit 443bbe6a785721bcaedf02f26c8a32d98ba63aec
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 443bbe6

Please sign in to comment.