1F616EMO bb5d1d6b4c
[FEATURE] rp_init
The newly added rp_init sets the initial random seed.
2023-09-23 13:44:15 +08:00

29 lines
1.1 KiB
Lua

-- r_place/mods/rp_init/init.lua
-- Scripts that shall be run before any other mods
--[[
Copyright (C) 2023 1F616EMO
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
]]
-- This mod contains scripts that nust be executed before everything happen.
-- This mod must be standalone, i.e. NOT depending on any other mods.
-- Other mods in rPlace SHOULD depend on this mod.
-- Set random seed
math.randomseed(os.time())
minetest.log("[rp_init] Init done")