diff --git a/src/logic/scripting/lua/libblock.cpp b/src/logic/scripting/lua/libblock.cpp index 08543d7e..22e76b84 100644 --- a/src/logic/scripting/lua/libblock.cpp +++ b/src/logic/scripting/lua/libblock.cpp @@ -237,7 +237,7 @@ int l_is_replaceable_at(lua_State* L) { return 1; } -int l_get_caption(lua_State* L) { +int l_block_caption(lua_State* L) { auto indices = scripting::content->getIndices(); lua_Integer id = lua_tointeger(L, 1); if (static_cast(id) >= indices->countBlockDefs()) { @@ -252,6 +252,7 @@ const luaL_Reg blocklib [] = { {"index", lua_wrap_errors}, {"name", lua_wrap_errors}, {"material", lua_wrap_errors}, + {"caption", lua_wrap_errors}, {"defs_count", lua_wrap_errors}, {"is_solid_at", lua_wrap_errors}, {"is_replaceable_at", lua_wrap_errors},