mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
e8982353cc
commit
3650e33f4c
1 changed files with 2 additions and 1 deletions
|
|
@ -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<size_t>(id) >= indices->countBlockDefs()) {
|
||||
|
|
@ -252,6 +252,7 @@ const luaL_Reg blocklib [] = {
|
|||
{"index", lua_wrap_errors<l_block_index>},
|
||||
{"name", lua_wrap_errors<l_block_name>},
|
||||
{"material", lua_wrap_errors<l_block_material>},
|
||||
{"caption", lua_wrap_errors<l_block_caption>},
|
||||
{"defs_count", lua_wrap_errors<l_blocks_count>},
|
||||
{"is_solid_at", lua_wrap_errors<l_is_solid_at>},
|
||||
{"is_replaceable_at", lua_wrap_errors<l_is_replaceable_at>},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue