medkits: Fix missing return statement

This fixes the flags not being capture-able
This commit is contained in:
ANAND 2019-07-03 12:24:54 +05:30
parent 0d6c80642c
commit 1aca94fd8c
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -63,6 +63,7 @@ local function stop_healing(player, interrupted)
end
ctf_flag.register_on_precapture(function()
-- Reset all player states at the end of the match
for name, info in pairs(players) do
players[name]=nil
local player = minetest.get_player_by_name(name)
@ -70,6 +71,7 @@ ctf_flag.register_on_precapture(function()
player:hud_remove(info.hud)
end
end
return true
end)
-- Called after left-click every n seconds (determined by regen_interval)