mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
commit
3d5db34203
2 changed files with 2 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ end
|
||||||
-- Example `base:scripts/tests.lua`
|
-- Example `base:scripts/tests.lua`
|
||||||
--
|
--
|
||||||
-- nocache - ignore cached script, load anyway
|
-- nocache - ignore cached script, load anyway
|
||||||
local function __load_script(path, nocache)
|
function __load_script(path, nocache)
|
||||||
local packname, filename = parse_path(path)
|
local packname, filename = parse_path(path)
|
||||||
|
|
||||||
-- __cached_scripts used in condition because cached result may be nil
|
-- __cached_scripts used in condition because cached result may be nil
|
||||||
|
|
|
||||||
|
|
@ -60,4 +60,5 @@ const luaL_Reg itemlib[] = {
|
||||||
{"stack_size", lua::wrap<l_item_stack_size>},
|
{"stack_size", lua::wrap<l_item_stack_size>},
|
||||||
{"defs_count", lua::wrap<l_item_defs_count>},
|
{"defs_count", lua::wrap<l_item_defs_count>},
|
||||||
{"icon", lua::wrap<l_item_get_icon>},
|
{"icon", lua::wrap<l_item_get_icon>},
|
||||||
|
{"caption", lua::wrap<l_item_caption>},
|
||||||
{NULL, NULL}};
|
{NULL, NULL}};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue