Update shooter_rocket/init.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
This commit is contained in:
olliy 2021-04-22 21:20:32 +05:00 committed by GitHub
parent fc5c6dc502
commit 13e981799e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ minetest.register_tool("shooter_rocket:rocket_gun_loaded", {
plcooldown[user:get_player_name()] = COOLDOWN
minetest.after(COOLDOWN, function(user)
if plcooldown[user:get_player_name()] then
plcooldown[user:get_player_name()] = 0
plcooldown[user:get_player_name()] = nil
end
end, user)
end