forked from Mineclonia/Mineclonia
Update doc and doc_items mods
This commit is contained in:
parent
e5a34367c9
commit
a76603def6
|
@ -362,7 +362,7 @@ rest of the game.
|
||||||
#### Parameters
|
#### Parameters
|
||||||
* `playername`: Name of the player for whom to reveal the entries
|
* `playername`: Name of the player for whom to reveal the entries
|
||||||
|
|
||||||
### `doc.add_entry_alias(category_id_orig, entry_id_orig, category_id_alias, entry_id_orig)`
|
### `doc.add_entry_alias(category_id_orig, entry_id_orig, category_id_alias, entry_id_alias)`
|
||||||
Adds a single alias for an entry. If an entry has an alias, supplying the
|
Adds a single alias for an entry. If an entry has an alias, supplying the
|
||||||
alias to a function which demand `category_id` and `entry_id` will work as expected.
|
alias to a function which demand `category_id` and `entry_id` will work as expected.
|
||||||
When using this function, you must make sure the category already exists.
|
When using this function, you must make sure the category already exists.
|
||||||
|
|
|
@ -20,12 +20,12 @@ doc.sub.items.temp.rotate_node = S("This block's rotation is affected by the way
|
||||||
|
|
||||||
doc.sub.items.settings = {}
|
doc.sub.items.settings = {}
|
||||||
doc.sub.items.settings.friendly_group_names = false
|
doc.sub.items.settings.friendly_group_names = false
|
||||||
local setting = minetest.setting_getbool("doc_items_friendly_group_names")
|
local setting = minetest.settings:get_bool("doc_items_friendly_group_names")
|
||||||
if setting ~= nil then
|
if setting ~= nil then
|
||||||
doc.sub.items.settings.friendly_group_names = setting
|
doc.sub.items.settings.friendly_group_names = setting
|
||||||
end
|
end
|
||||||
doc.sub.items.settings.itemstring = false
|
doc.sub.items.settings.itemstring = false
|
||||||
setting = minetest.setting_getbool("doc_items_show_itemstrings")
|
setting = minetest.settings:get_bool("doc_items_show_itemstrings")
|
||||||
if setting ~= nil then
|
if setting ~= nil then
|
||||||
doc.sub.items.settings.itemstring = setting
|
doc.sub.items.settings.itemstring = setting
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue