mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix rigidbody:is_enabled
This commit is contained in:
parent
1a246e2ae0
commit
2adfbdb192
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ static int l_set_vel(lua::State* L) {
|
|||
|
||||
static int l_is_enabled(lua::State* L) {
|
||||
if (auto entity = get_entity(L, 1)) {
|
||||
lua::pushboolean(L, entity->getRigidbody().enabled);
|
||||
return lua::pushboolean(L, entity->getRigidbody().enabled);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue