mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add BlockModel struct
This commit is contained in:
parent
718f5d1089
commit
20e3a961f9
12 changed files with 46 additions and 39 deletions
|
|
@ -312,7 +312,7 @@ static int l_get_textures(lua::State* L) {
|
|||
|
||||
static int l_get_model(lua::State* L) {
|
||||
if (auto def = require_block(L)) {
|
||||
return lua::pushlstring(L, BlockModelTypeMeta.getName(def->model));
|
||||
return lua::pushlstring(L, BlockModelTypeMeta.getName(def->model.type));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue