mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 12:33:45 +01:00
Fix spread of items in falling code
This commit is contained in:
parent
183c81b5ec
commit
443bbe6a78
@ -96,9 +96,9 @@ function drop_attached_node(p)
|
|||||||
minetest.env:remove_node(p)
|
minetest.env:remove_node(p)
|
||||||
for _,item in ipairs(minetest.get_node_drops(nn, "")) do
|
for _,item in ipairs(minetest.get_node_drops(nn, "")) do
|
||||||
local pos = {
|
local pos = {
|
||||||
x = p.x + math.random(60)/60-0.3,
|
x = p.x + math.random()/2 - 0.25,
|
||||||
y = p.y + math.random(60)/60-0.3,
|
y = p.y + math.random()/2 - 0.25,
|
||||||
z = p.z + math.random(60)/60-0.3,
|
z = p.z + math.random()/2 - 0.25,
|
||||||
}
|
}
|
||||||
minetest.env:add_item(pos, item)
|
minetest.env:add_item(pos, item)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user