From c3e3f7ae38001fc0eeec8c20b65c4a3536998642 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 27 Oct 2013 02:11:32 -0400 Subject: [PATCH] fix incorrect assumpton about math.random() --- leafdecay.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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