mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Add setting for bookshelf inventories
This commit is contained in:
parent
eed52b69a2
commit
1ddc1abb97
2 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,8 @@ local C = minetest.colorize
|
||||||
local max_text_length = 4500 -- TODO: Increase to 12800 when scroll bar was added to written book
|
local max_text_length = 4500 -- TODO: Increase to 12800 when scroll bar was added to written book
|
||||||
local max_title_length = 64
|
local max_title_length = 64
|
||||||
|
|
||||||
|
local bookshelf_inv = minetest.settings:get_bool("mcl_bookshelf_inventories",true)
|
||||||
|
|
||||||
local header = ""
|
local header = ""
|
||||||
if minetest.get_modpath("mcl_init") then
|
if minetest.get_modpath("mcl_init") then
|
||||||
header = "no_prepend[]" .. mcl_vars.gui_nonbg .. mcl_vars.gui_bg_color ..
|
header = "no_prepend[]" .. mcl_vars.gui_nonbg .. mcl_vars.gui_bg_color ..
|
||||||
|
@ -366,6 +368,7 @@ local function protection_check_put_take(pos, listname, index, stack, player)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function bookshelf_gui(pos, node, clicker)
|
local function bookshelf_gui(pos, node, clicker)
|
||||||
|
if not bookshelf_inv then return end
|
||||||
local name = minetest.get_meta(pos):get_string("name")
|
local name = minetest.get_meta(pos):get_string("name")
|
||||||
|
|
||||||
if name == "" then
|
if name == "" then
|
||||||
|
|
|
@ -172,6 +172,10 @@ fix_doubleplants (Mcimport double plant fixes) bool true
|
||||||
# Allow players to create Minecraft-like maps.
|
# Allow players to create Minecraft-like maps.
|
||||||
enable_real_maps (Enable Real Maps) bool true
|
enable_real_maps (Enable Real Maps) bool true
|
||||||
|
|
||||||
|
[Additional Features]
|
||||||
|
# Enable Bookshelf inventories
|
||||||
|
mcl_bookshelf_inventories (Enable bookshelf inventories) bool true
|
||||||
|
|
||||||
[Debugging]
|
[Debugging]
|
||||||
# If enabled, this will show the itemstring of an item in the description.
|
# If enabled, this will show the itemstring of an item in the description.
|
||||||
mcl_item_id_debug (Item ID Debug) bool false
|
mcl_item_id_debug (Item ID Debug) bool false
|
||||||
|
|
Loading…
Reference in a new issue