From 8667bb31c097a3a914da2051f8ca1e846639ba47 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Thu, 22 Apr 2021 05:26:39 +0500 Subject: [PATCH] Update shooter_rocket/init.lua Co-authored-by: David Leal --- shooter_rocket/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shooter_rocket/init.lua b/shooter_rocket/init.lua index 50bc4bc..3a74152 100644 --- a/shooter_rocket/init.lua +++ b/shooter_rocket/init.lua @@ -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()