Update minetest.setting_getbool to minetest.settings:get_bool (#6)

This commit is contained in:
ksandr 2021-07-12 17:24:30 +03:00 committed by GitHub
parent ee6aacbb51
commit d4a450cd5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -135,7 +135,7 @@ minetest.register_tool("shooter_flaregun:flaregun", {
minetest.sound_play("shooter_click", {object=user})
return itemstack
end
if not minetest.setting_getbool("creative_mode") then
if not minetest.settings:get_bool("creative_mode") then
inv:remove_item("main", "shooter:flare 1")
itemstack:add_wear(65535 / 100)
end