mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
cb159f8d8a
commit
b6b80f55c8
4 changed files with 31 additions and 14 deletions
|
@ -2043,6 +2043,9 @@ void push_collision_move_result(lua_State *L, const collisionMoveResult &res)
|
|||
if (c.type == COLLISION_NODE) {
|
||||
push_v3s16(L, c.node_p);
|
||||
lua_setfield(L, -2, "node_pos");
|
||||
} else if (c.type == COLLISION_OBJECT) {
|
||||
push_objectRef(L, c.object->getId());
|
||||
lua_setfield(L, -2, "object");
|
||||
}
|
||||
|
||||
push_v3f(L, c.old_speed / BS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue