diff --git a/leafdecay.lua b/leafdecay.lua index f1b8021..f77f8dd 100644 --- a/leafdecay.lua +++ b/leafdecay.lua @@ -15,9 +15,9 @@ local process_drops = function(pos, name) for _,dropitem in ipairs(drops) do if dropitem ~= name then local newpos = { - x=pos.x + math.random(0, 0.5), - y=pos.y + math.random(0, 0.5), - z=pos.z + math.random(0, 0.5) + x=pos.x + math.random() - 0.5, + y=pos.y + math.random() - 0.5, + z=pos.z + math.random() - 0.5 } minetest.add_item(newpos, dropitem) end