mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
make core:mob.look_at public
This commit is contained in:
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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue