diff options
author | SmallJoker <mk939@ymail.com> | 2018-06-23 14:56:27 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-23 15:02:23 +0200 |
commit | edd00f222c02f2e0f42f0c9bf52de74c41bf12b9 (patch) | |
tree | 1ea660608b5be87469d11c9265013c208429341c /init.lua | |
parent | c43074f5c27d982199860aad0eb69b01ae2d33aa (diff) |
Replace deprecated function names, unify creative check
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ --- Unified Inventory for Minetest 0.4.8+ +-- Unified Inventory for Minetest >= 0.4.16 local modpath = minetest.get_modpath(minetest.get_current_modname()) local worldpath = minetest.get_worldpath() @@ -44,10 +44,10 @@ unified_inventory = { fgettext = function(...) return minetest.formspec_escape(mygettext(...)) end, -- "Lite" mode - lite_mode = minetest.setting_getbool("unified_inventory_lite"), + lite_mode = minetest.settings:get_bool("unified_inventory_lite"), -- Trash enabled - trash_enabled = (minetest.setting_getbool("unified_inventory_trash") ~= false), + trash_enabled = (minetest.settings:get_bool("unified_inventory_trash") ~= false), pagecols = 8, pagerows = 10, @@ -80,7 +80,7 @@ dofile(modpath.."/internal.lua") dofile(modpath.."/callbacks.lua") dofile(modpath.."/register.lua") -if minetest.setting_getbool("unified_inventory_bags") ~= false then +if minetest.settings:get_bool("unified_inventory_bags") ~= false then dofile(modpath.."/bags.lua") end |