This commit is contained in:
philipmi 2021-02-14 22:06:32 +01:00
commit 7157751405

View file

@ -83,11 +83,6 @@ minetest.register_on_dieplayer(function(player, reason)
last_attacker:hud_remove(potential_cowards[hname].hud or 0)
potential_cowards[hname] = nil
end
if potential_cowards[pname] then
player:hud_remove(potential_cowards[pname].hud or 0)
potential_cowards[pname] = nil
end
else
for victim in pairs(potential_cowards) do
if potential_cowards[victim].puncher == pname then
@ -103,6 +98,11 @@ minetest.register_on_dieplayer(function(player, reason)
end
end
end
if potential_cowards[pname] then
player:hud_remove(potential_cowards[pname].hud or 0)
potential_cowards[pname] = nil
end
end)
minetest.register_on_leaveplayer(function(player, timeout)