Update shooter_rocket/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
olliy 2021-04-22 05:26:39 +05:00 committed by GitHub
parent 1a42bcd1e0
commit 8667bb31c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ minetest.register_tool("shooter_rocket:rocket_gun_loaded", {
if plcooldown[user:get_player_name()] ~= 0 then
minetest.chat_send_player(user:get_player_name(), "Your rocket has a cooldown!")
else
if not minetest.setting_getbool("creative_mode") then
if not minetest.settings:get_bool("creative_mode") then
itemstack:add_wear(65535 / 50)
end
itemstack = "shooter_rocket:rocket_gun 1 "..itemstack:get_wear()