Fix map selection

master
HimbeerserverDE 2020-11-23 19:45:30 +01:00
parent 77960de9cd
commit 24832d80a9
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,8 @@ bedwars.init = false
bedwars.storage = minetest.get_mod_storage()
math.randomseed(os.clock())
local mp = minetest.get_modpath(minetest.get_current_modname())
bedwars.log = function(msg)
@ -29,7 +31,6 @@ if #maps > 0 then
dofile(mp .. "/chest.lua")
dofile(mp .. "/antibuild.lua")
math.randomseed(os.clock())
bedwars.current_map = maps[math.random(1, #maps)]
minetest.register_on_joinplayer(function(player)