fix incorrect assumpton about math.random()

This commit is contained in:
Vanessa Ezekowitz 2013-10-27 02:11:32 -04:00
parent f3a8c29d1a
commit c3e3f7ae38
1 changed files with 3 additions and 3 deletions

View File

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