From 27abdd9f96516c56f81845ea1df6ae1b5532d04d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 27 Dec 2014 17:41:42 +0000 Subject: [PATCH] No error message if on allocmode 0 --- mods/capturetheflag/ctf/core.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/capturetheflag/ctf/core.lua b/mods/capturetheflag/ctf/core.lua index e50c009..1c8a922 100644 --- a/mods/capturetheflag/ctf/core.lua +++ b/mods/capturetheflag/ctf/core.lua @@ -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