From 429be15e411ceeadf82db6b0fa97591cbcf502d4 Mon Sep 17 00:00:00 2001 From: MisterE123 Date: Mon, 1 Feb 2021 20:54:07 -0500 Subject: [PATCH] Update globalstep.lua --- minigame_manager/globalstep.lua | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/minigame_manager/globalstep.lua b/minigame_manager/globalstep.lua index 2520750..ecccedb 100644 --- a/minigame_manager/globalstep.lua +++ b/minigame_manager/globalstep.lua @@ -266,17 +266,10 @@ minetest.register_globalstep(function(dtime) gain = 2.0, }) - -- --count how many players are left in the arena... - -- local n = 0 - -- for name, stat in pairs(arena.players) do - -- n = n+1 - -- end - -- if we are the only player in the arena, then load celebration... you lost, but you also won, - -- whether as a singleplayer of as a leader in multiplayer - -- although, really, this code will only ever run in singleplayer, since arena_lib automatically ends multiplayer arenas that have 1 player left - - if arena.mode == 'singleplayer' then--if n == 1 then + -- if we are in singleplayer, then load celebration... you lost, but you also won, + + if arena.mode == 'singleplayer' then arena_lib.load_celebration('wormball', arena, pl_name)