Medkits: Don't give back if map is skipped (#870)

This commit is contained in:
Lars Müller 2021-04-29 15:54:29 +02:00 committed by GitHub
parent 47cc8928f7
commit 4f49560569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -83,10 +83,10 @@ local function stop_healing(player, interrupted)
player:hud_remove(info.hud) player:hud_remove(info.hud)
end end
ctf_flag.register_on_precapture(function() ctf_match.register_on_new_match(function()
-- Reset all player states at the end of the match -- Reset all player states at the end of the match
for name, info in pairs(players) do for name, info in pairs(players) do
players[name]=nil players[name] = nil
local player = minetest.get_player_by_name(name) local player = minetest.get_player_by_name(name)
if player then if player then
player:hud_remove(info.hud) player:hud_remove(info.hud)

View file

@ -1,2 +1,2 @@
name = medkits name = medkits
depends = ctf_flag depends = ctf_match