This commit is contained in:
1F616EMO~nya 2024-05-01 18:56:18 +08:00 committed by GitHub
parent 2e61a80466
commit 3b7a4644d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,8 @@ end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)
local name = player:get_player_name() local name = player:get_player_name()
cooldowns[name]:cancel() if cooldowns[name] then
cooldowns[name] = nil cooldowns[name]:cancel()
end) cooldowns[name] = nil
end
end)