make core:mob.look_at public

This commit is contained in:
MihailRis
2025-09-07 23:41:29 +03:00
parent 3c2061f788
commit 23a9ad0979
3 changed files with 32 additions and 30 deletions
@@ -91,7 +91,7 @@ static int l_set_texture(lua::State* L) {
}
static int l_index(lua::State* L) {
if (auto skeleton= get_skeleton(L)) {
if (auto skeleton = get_skeleton(L)) {
if (auto bone = skeleton->config->find(lua::require_string(L, 2))) {
return lua::pushinteger(L, bone->getIndex());
}