@@ -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}};
|
||||||
|
|||||||
Reference in New Issue
Block a user