Merge pull request #314 from Xertis/main

bugs fix
This commit is contained in:
MihailRis
2024-10-20 00:07:06 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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}};