Stop crash on ctf_flag.assert_flag() during load time

This commit is contained in:
rubenwardy 2015-11-26 17:10:31 +00:00
parent a8abae4497
commit b12f209c95

View file

@ -59,7 +59,10 @@ ctf.register_on_new_game(function()
})
ctf_flag.add(name, flag)
ctf_flag.assert_flag(flag)
minetest.after(0, function()
ctf_flag.assert_flag(flag)
end)
else
ctf.warning("match", "Invalid team setup: " .. dump(v))
end