From 5409f33f24fb82675f88c19690928a2f107a4e02 Mon Sep 17 00:00:00 2001 From: Minetest-j45 <55553015+Minetest-j45@users.noreply.github.com> Date: Sun, 7 Mar 2021 19:09:36 +0000 Subject: [PATCH 1/2] Remove combat HUDs at start of new match (#822) * Remove coward HUD on new game * Update init.lua Co-authored-by: LoneWolfHT --- mods/pvp/anticoward/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mods/pvp/anticoward/init.lua b/mods/pvp/anticoward/init.lua index cfa55c0..bba05b5 100644 --- a/mods/pvp/anticoward/init.lua +++ b/mods/pvp/anticoward/init.lua @@ -165,9 +165,23 @@ minetest.register_globalstep(function(dtime) end) ctf_match.register_on_new_match(function() + for coward, info in pairs(potential_cowards) do + coward = minetest.get_player_by_name(coward) + + if coward and info.hud then + coward:hud_remove(info.hud) + end + end potential_cowards = {} end) ctf.register_on_new_game(function() + for coward, info in pairs(potential_cowards) do + coward = minetest.get_player_by_name(coward) + + if coward and info.hud then + coward:hud_remove(info.hud) + end + end potential_cowards = {} end) From 0eb6071733476c53f6f649e77fc13020e322325a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 8 Mar 2021 07:21:43 -0800 Subject: [PATCH 2/2] Update Maps Submodule (#823) Bumps [mods/ctf/ctf_map/ctf_map_core/maps](https://github.com/MT-CTF/maps) from `c6fd7be` to `eb88118`. - [Release notes](https://github.com/MT-CTF/maps/releases) - [Commits](https://github.com/MT-CTF/maps/compare/c6fd7bedd4a68806397ee31a810b236d85307379...eb881181cc54c3dac444cfa91fa63baf1557d02f) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- mods/ctf/ctf_map/ctf_map_core/maps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/maps b/mods/ctf/ctf_map/ctf_map_core/maps index c6fd7be..eb88118 160000 --- a/mods/ctf/ctf_map/ctf_map_core/maps +++ b/mods/ctf/ctf_map/ctf_map_core/maps @@ -1 +1 @@ -Subproject commit c6fd7bedd4a68806397ee31a810b236d85307379 +Subproject commit eb881181cc54c3dac444cfa91fa63baf1557d02f