From 1e759365ca4f5d8b7fc928351e9892e55b2c030b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 16 Feb 2017 04:08:33 +0100 Subject: [PATCH] Centralize random seed generation --- mods/CORE/mcl_core/init.lua | 3 +++ mods/ENTITIES/drippingwater/init.lua | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mods/CORE/mcl_core/init.lua b/mods/CORE/mcl_core/init.lua index d1654432b..7ab474c2d 100644 --- a/mods/CORE/mcl_core/init.lua +++ b/mods/CORE/mcl_core/init.lua @@ -16,6 +16,9 @@ mcl_core.repair = 0.05 minetest.nodedef_default.stack_max = 64 minetest.craftitemdef_default.stack_max = 64 +-- Set random seed for all other mods (Remember to make sure no other mod calls this function) +math.randomseed(os.time()) + -- Load files dofile(minetest.get_modpath("mcl_core").."/functions.lua") dofile(minetest.get_modpath("mcl_core").."/nodes.lua") diff --git a/mods/ENTITIES/drippingwater/init.lua b/mods/ENTITIES/drippingwater/init.lua index bf58b35ea..91469568e 100644 --- a/mods/ENTITIES/drippingwater/init.lua +++ b/mods/ENTITIES/drippingwater/init.lua @@ -3,10 +3,6 @@ -- License of code, textures & sounds: CC0 ---Random -math.randomseed(3) - - --Drop entities --water