Bugfix: timer seconds check when queue was full wasn't set properly

master
Marco 2020-05-24 18:57:36 +02:00
parent d02c55e73d
commit 397ac7c425
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ minetest.override_item("default:sign_wall", {
-- se raggiungo i giocatori massimi e la partita non è iniziata, accorcio eventualmente la durata
if players_in_arena == sign_arena.max_players and sign_arena.in_queue then
if timer:get_timeout() > 5 then
if timer:get_timeout() - timer:get_elapsed() > 5 then
timer:stop()
timer:start(5)
end