mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-07-04 09:20:28 +02:00
avoid 0.5-only settings API
This commit is contained in:
4
init.lua
4
init.lua
@ -47,7 +47,7 @@ unified_inventory = {
|
|||||||
lite_mode = minetest.settings.get_bool("unified_inventory_lite"),
|
lite_mode = minetest.settings.get_bool("unified_inventory_lite"),
|
||||||
|
|
||||||
-- Trash enabled
|
-- Trash enabled
|
||||||
trash_enabled = minetest.settings.get_bool("unified_inventory_trash", false),
|
trash_enabled = (minetest.settings.get_bool("unified_inventory_trash") ~= false),
|
||||||
|
|
||||||
pagecols = 8,
|
pagecols = 8,
|
||||||
pagerows = 10,
|
pagerows = 10,
|
||||||
@ -80,7 +80,7 @@ dofile(modpath.."/internal.lua")
|
|||||||
dofile(modpath.."/callbacks.lua")
|
dofile(modpath.."/callbacks.lua")
|
||||||
dofile(modpath.."/register.lua")
|
dofile(modpath.."/register.lua")
|
||||||
|
|
||||||
if minetest.settings.get_bool("unified_inventory_bags", false) then
|
if minetest.settings.get_bool("unified_inventory_bags") ~= false then
|
||||||
dofile(modpath.."/bags.lua")
|
dofile(modpath.."/bags.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user