update entity methods set

This commit is contained in:
MihailRis
2024-07-18 12:08:43 +03:00
parent d285ffb2f7
commit 3549c1f326
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -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;
}