mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Centralize random seed generation
This commit is contained in:
parent
60287ea05b
commit
1e759365ca
2 changed files with 3 additions and 4 deletions
|
@ -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")
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
|
||||
-- License of code, textures & sounds: CC0
|
||||
|
||||
--Random
|
||||
math.randomseed(3)
|
||||
|
||||
|
||||
--Drop entities
|
||||
|
||||
--water
|
||||
|
|
Loading…
Reference in a new issue