From e56f3998920b0211075734015ab55b92cbc5d0bd Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Tue, 11 Jul 2023 14:43:51 +0200 Subject: [PATCH] Play victory jingle if is tie --- src/arena_lib/arena_manager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arena_lib/arena_manager.lua b/src/arena_lib/arena_manager.lua index afa6c71..a4cb2d4 100644 --- a/src/arena_lib/arena_manager.lua +++ b/src/arena_lib/arena_manager.lua @@ -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)