From fa74e59818da02cc9cbd838770e42809751c4475 Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:55:18 +0300 Subject: [PATCH 1/2] fix __load_script --- res/scripts/stdmin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/scripts/stdmin.lua b/res/scripts/stdmin.lua index 6cd175ba..e38a39ef 100644 --- a/res/scripts/stdmin.lua +++ b/res/scripts/stdmin.lua @@ -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 From 5ffa6966b29de55d86e5b1c79edb454d0ca81110 Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:56:30 +0300 Subject: [PATCH 2/2] fix item.caption --- src/logic/scripting/lua/libs/libitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logic/scripting/lua/libs/libitem.cpp b/src/logic/scripting/lua/libs/libitem.cpp index 099cbba4..5a4ef4de 100644 --- a/src/logic/scripting/lua/libs/libitem.cpp +++ b/src/logic/scripting/lua/libs/libitem.cpp @@ -60,4 +60,5 @@ const luaL_Reg itemlib[] = { {"stack_size", lua::wrap}, {"defs_count", lua::wrap}, {"icon", lua::wrap}, + {"caption", lua::wrap}, {NULL, NULL}};