Replace deprecated settings method

This commit is contained in:
tacotexmex 2017-06-18 20:56:18 +02:00
parent 38328a33eb
commit c047e5af94

View File

@ -1,4 +1,4 @@
local auto_refill = minetest.setting_getbool("invtweak_auto_refill") or true
local auto_refill = minetest.settings:get_bool("invtweak_auto_refill") or true
local tweak = {}
tweak.formspec = {}
@ -207,7 +207,7 @@ if auto_refill == true then
if not placer then return end
local index = placer:get_wield_index()
local cnt = placer:get_wielded_item():get_count()-1
if minetest.setting_getbool("creative_mode") then
if minetest.settings:get_bool("creative_mode") then
return true
else
if cnt == 0 then
@ -222,7 +222,7 @@ wielded.name = {}
wielded.wear = {}
minetest.register_on_punchnode(function(pos, node, puncher)
if not puncher or minetest.setting_getbool("creative_mode") then
if not puncher or minetest.settings:get_bool("creative_mode") then
return
end
local name = puncher:get_player_name()