No error message if on allocmode 0

This commit is contained in:
rubenwardy 2014-12-27 17:41:42 +00:00
parent 2b53e4bb30
commit 27abdd9f96

View File

@ -224,7 +224,9 @@ minetest.register_on_newplayer(function(player)
local max_players = ctf.setting("maximum_in_team")
local alloc_mode = tonumber(ctf.setting("allocate_mode"))
if alloc_mode == 1 then
if alloc_mode == 0 then
return
elseif alloc_mode == 1 then
local index = {}
for key, team in pairs(ctf.teams) do