Merge branch 'master' of https://github.com/MT-CTF/shooter
Conflicts: shooter_rocket/init.lua
This commit is contained in:
commit
4733f7e6c7
5 changed files with 9 additions and 9 deletions
|
@ -84,7 +84,7 @@ minetest.register_tool("shooter_rocket:rocket_gun_loaded", {
|
|||
value = "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()
|
||||
|
@ -131,7 +131,7 @@ minetest.register_tool("shooter_rocket:rocket_gun", {
|
|||
local inv = user:get_inventory()
|
||||
if inv:contains_item("main", "shooter_rocket:rocket") then
|
||||
minetest.sound_play("shooter_reload", {object=user})
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
inv:remove_item("main", "shooter_rocket:rocket 1")
|
||||
end
|
||||
itemstack = "shooter_rocket:rocket_gun_loaded 1 "..itemstack:get_wear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue