Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Nov 14, 2024
1 parent 080953c commit b155134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/activeobjectmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void ActiveObjectMgr::getAddedActiveObjectsAroundPos(const v3f &player_pos, f32
added_objects.push(id);


if (++count > 10)
if (++count > 10 && !current_objects.empty())
break;

}
Expand Down

0 comments on commit b155134

Please sign in to comment.