Stop crash on ctf_flag.assert_flag() during load time
This commit is contained in:
parent
a8abae4497
commit
b12f209c95
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue