summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 6929600..f76acb8 100644
--- a/init.lua
+++ b/init.lua
@@ -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