mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
11723cffe0
commit
0fc51db772
2 changed files with 4 additions and 1 deletions
|
@ -397,7 +397,8 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
|
|||
// we directly use the callback to populate the result to prevent
|
||||
// a useless result loop here
|
||||
auto include_obj_cb = [self, &objects] (ServerActiveObject *obj) {
|
||||
if (!self || (self != obj && self != obj->getParent())) {
|
||||
if (!obj->isGone() &&
|
||||
(!self || (self != obj && self != obj->getParent()))) {
|
||||
objects.push_back((ActiveObject *)obj);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue