Update minetest.setting_getbool to minetest.settings:get_bool (#6)
This commit is contained in:
parent
ee6aacbb51
commit
d4a450cd5b
5 changed files with 8 additions and 8 deletions
|
@ -63,7 +63,7 @@ minetest.register_tool("shooter_grenade:grenade", {
|
|||
description = "Grenade",
|
||||
inventory_image = "shooter_hand_grenade.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
itemstack:clear()
|
||||
end
|
||||
if pointed_thing.type ~= "nothing" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue