1
0
Fork 0

Centralize random seed generation

This commit is contained in:
Wuzzy 2017-02-16 04:08:33 +01:00
parent 60287ea05b
commit 1e759365ca
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -3,10 +3,6 @@
-- License of code, textures & sounds: CC0
--Random
math.randomseed(3)
--Drop entities
--water