forked from VoxeLibre/VoxeLibre
Merge pull request 'Add setting for bookshelf inventories' (#2613) from bookshelf_inv_setting into master
Reviewed-on: MineClone2/MineClone2#2613 Reviewed-by: PrairieWind <prairie.astronomer1@gmail.com>
This commit is contained in:
commit
b552548b4e
|
@ -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 New Issue