Clean tables if the tournament can't be started

master
upsilon 2017-02-19 17:25:48 +01:00
parent 44e8c32247
commit 09da70a421
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ function pvpplus.start_tournament(starter_name)
end
if count <= 1 then
minetest.chat_send_player(starter_name, "There are not enough engaged players to start a tournament.")
tournament.engaged_players = {}
tournament.engagement_position = nil
tournament.teleport_immediately = false
return false
end