Fix combat not ending on death
This commit is contained in:
parent
abf1fa2ad5
commit
87bd607856
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue