Fix nil
This commit is contained in:
parent
2e61a80466
commit
3b7a4644d5
@ -67,6 +67,8 @@ end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
cooldowns[name]:cancel()
|
||||
cooldowns[name] = nil
|
||||
end)
|
||||
if cooldowns[name] then
|
||||
cooldowns[name]:cancel()
|
||||
cooldowns[name] = nil
|
||||
end
|
||||
end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user