Use correct on_celebration callback
parent
36d729125b
commit
7ddc562e3d
|
@ -1,8 +1,8 @@
|
|||
arena_lib.register_on_celebration(function(mod_ref, arena, winners)
|
||||
arena_lib.on_celebration("balloon_bop", function(arena, winners)
|
||||
for pl_name,stats in pairs(arena.players) do -- it is a good convention to use "pl_name" in for loops and "p_name" elsewhere
|
||||
if balloon_bop.infohuds[pl_name] then
|
||||
if balloon_bop.infohuds[pl_name] then
|
||||
local player = minetest.get_player_by_name(pl_name)
|
||||
if player then
|
||||
if player then
|
||||
-- clear HUDs
|
||||
player:hud_remove(balloon_bop.infohuds[pl_name])
|
||||
for idx,hud_id in ipairs(balloon_bop.numhuds[pl_name]) do
|
||||
|
@ -19,4 +19,4 @@ arena_lib.register_on_celebration(function(mod_ref, arena, winners)
|
|||
obj:remove()
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue