Play victory jingle if is tie

This commit is contained in:
Zughy 2023-07-11 14:43:51 +02:00
parent 444cadb58b
commit e56f399892

View File

@ -86,7 +86,7 @@ arena_lib.on_celebration("block_league", function(arena, winners)
end
-- se è pareggio, passa una stringa (no one)
local is_tie = type(winners) == "string" and true or false
local is_tie = type(winners) == "string" and true
if not is_tie then
for pl_name, pl_stats in pairs(arena.players) do
@ -99,7 +99,7 @@ arena_lib.on_celebration("block_league", function(arena, winners)
else
for pl_name, pl_stats in pairs(arena.players) do
minetest.sound_play("bl_jingle_defeat", {to_player = pl_name})
minetest.sound_play("bl_jingle_victory", {to_player = pl_name})
end
end
end)