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
commit 3d5db34203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -248,7 +248,7 @@ end
-- Example `base:scripts/tests.lua`
--
-- nocache - ignore cached script, load anyway
local function __load_script(path, nocache)
function __load_script(path, nocache)
local packname, filename = parse_path(path)
-- __cached_scripts used in condition because cached result may be nil

View File

@ -60,4 +60,5 @@ const luaL_Reg itemlib[] = {
{"stack_size", lua::wrap<l_item_stack_size>},
{"defs_count", lua::wrap<l_item_defs_count>},
{"icon", lua::wrap<l_item_get_icon>},
{"caption", lua::wrap<l_item_caption>},
{NULL, NULL}};