Fix rare crash and anticoward bug?
This commit is contained in:
parent
abb463fbd3
commit
21ff6f58c1
2 changed files with 5 additions and 2 deletions
|
@ -95,8 +95,10 @@ minetest.register_on_dieplayer(function(player, reason)
|
||||||
potential_cowards[hname] = nil
|
potential_cowards[hname] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
player:hud_remove(potential_cowards[pname].hud or 0)
|
if potential_cowards[pname] then
|
||||||
potential_cowards[pname] = nil
|
player:hud_remove(potential_cowards[pname].hud or 0)
|
||||||
|
potential_cowards[pname] = nil
|
||||||
|
end
|
||||||
else
|
else
|
||||||
for victim in pairs(potential_cowards) do
|
for victim in pairs(potential_cowards) do
|
||||||
if potential_cowards[victim].puncher == pname then
|
if potential_cowards[victim].puncher == pname then
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
name = anticoward
|
name = anticoward
|
||||||
|
depends = ctf, ctf_classes
|
||||||
|
|
Loading…
Reference in a new issue