Skip to content

Commit 443bbe6

Browse files
committedJan 12, 2013
Fix spread of items in falling code
1 parent 183c81b commit 443bbe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎builtin/falling.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ function drop_attached_node(p)
9696
minetest.env:remove_node(p)
9797
for _,item in ipairs(minetest.get_node_drops(nn, "")) do
9898
local pos = {
99-
x = p.x + math.random(60)/60-0.3,
100-
y = p.y + math.random(60)/60-0.3,
101-
z = p.z + math.random(60)/60-0.3,
99+
x = p.x + math.random()/2 - 0.25,
100+
y = p.y + math.random()/2 - 0.25,
101+
z = p.z + math.random()/2 - 0.25,
102102
}
103103
minetest.env:add_item(pos, item)
104104
end

0 commit comments

Comments
 (0)
Please sign in to comment.