From 13859540259708db32621f4f5c0019090c2d26ca Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 27 Jul 2018 18:21:45 +0100 Subject: [PATCH] blocks more random --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 41acc53..89eb275 100644 --- a/init.lua +++ b/init.lua @@ -281,7 +281,8 @@ end -- this is what happens when you dig a lucky block local lucky_block = function(pos, digger) - math.randomseed(os.time()) -- make sure it's really random + -- make sure it's really random + math.randomseed(os.time() + minetest.get_timeofday()) local luck = math.random(1, #lucky_list) ; -- luck = 1 local action = lucky_list[luck][1]