2022-01-30 15:10:17 -05:00
|
|
|
|
|
|
|
-- Settings!
|
|
|
|
chest2.settings = {}
|
|
|
|
|
|
|
|
local settings = chest2.settings
|
|
|
|
|
|
|
|
settings.pages = minetest.settings:get("chest2.max_pages")
|
|
|
|
|
|
|
|
if settings.pages == nil then
|
|
|
|
settings.pages = 3
|
|
|
|
minetest.settings:set("chest2.max_pages", 3)
|
|
|
|
end
|
|
|
|
|
|
|
|
settings.craft_chest = minetest.settings:get_bool("chest2.craft_chest")
|
|
|
|
|
|
|
|
if settings.craft_chest == nil then
|
|
|
|
settings.craft_chest = false
|
|
|
|
minetest.settings:set_bool("chest2.craft_chest", false)
|
|
|
|
end
|
|
|
|
|
|
|
|
settings.craft_remote = minetest.settings:get_bool("chest2.craft_remote")
|
|
|
|
|
|
|
|
if settings.craft_remote == nil then
|
|
|
|
settings.craft_remote = false
|
|
|
|
minetest.settings:set_bool("chest2.craft_remote", false)
|
|
|
|
end
|
2022-01-30 16:12:44 -05:00
|
|
|
|
|
|
|
--[[
|
|
|
|
chest2.tools.log("chest2.max_pages = "..tostring(settings.pages))
|
|
|
|
chest2.tools.log("chest2.craft_chest = "..tostring(settings.craft_chest))
|
|
|
|
chest2.tools.log("chest2.craft_remote = "..tostring(settings.craft_remote))
|
|
|
|
]]
|