medkits: Fix missing return statement
This fixes the flags not being capture-able
This commit is contained in:
parent
0d6c80642c
commit
1aca94fd8c
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,7 @@ local function stop_healing(player, interrupted)
|
||||||
end
|
end
|
||||||
|
|
||||||
ctf_flag.register_on_precapture(function()
|
ctf_flag.register_on_precapture(function()
|
||||||
|
-- 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)
|
||||||
|
@ -70,6 +71,7 @@ ctf_flag.register_on_precapture(function()
|
||||||
player:hud_remove(info.hud)
|
player:hud_remove(info.hud)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Called after left-click every n seconds (determined by regen_interval)
|
-- Called after left-click every n seconds (determined by regen_interval)
|
||||||
|
|
Loading…
Reference in a new issue