mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
update entity methods set
This commit is contained in:
parent
d285ffb2f7
commit
3549c1f326
4 changed files with 13 additions and 6 deletions
|
|
@ -43,7 +43,7 @@ static int l_defs_count(lua::State* L) {
|
|||
|
||||
static int l_get_def(lua::State* L) {
|
||||
if (auto entity = get_entity(L, 1)) {
|
||||
return lua::pushstring(L, entity->getDef().name);
|
||||
return lua::pushinteger(L, entity->getDef().rt.id);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue