This commit is contained in:
philipmi 2021-03-08 17:30:36 +01:00
commit 5d956ffac3
2 changed files with 15 additions and 1 deletions

@ -1 +1 @@
Subproject commit c6fd7bedd4a68806397ee31a810b236d85307379
Subproject commit eb881181cc54c3dac444cfa91fa63baf1557d02f

View file

@ -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)