Fix respawn_delay crash

This commit is contained in:
LoneWolfHT 2020-12-12 08:01:30 -08:00
parent 31048422c8
commit 5975263e04

View file

@ -60,7 +60,7 @@ end)
function respawnfunc(pname)
local player = minetest.get_player_by_name(pname)
if not player then
if not player or not ctf_respawn_delay.players[pname] then
ctf_respawn_delay.players[pname] = nil
return
end