1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Do not emerge blocks in the active_object_send_range_blocks range (#14152)

The active object range is about active objects (not blocks). Activate blocks (and hence any object "in" them) in the cone define by the active object range (and fov) when they are loaded (i.e. visible), otherwise ignore them.
This commit is contained in:
lhofhansl 2023-12-29 14:18:06 -08:00 committed by GitHub
parent 22a1653702
commit c99196d363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 15 deletions

View file

@ -168,7 +168,8 @@ public:
s16 active_block_range,
s16 active_object_range,
std::set<v3s16> &blocks_removed,
std::set<v3s16> &blocks_added);
std::set<v3s16> &blocks_added,
std::set<v3s16> &extra_blocks_added);
bool contains(v3s16 p) const {
return (m_list.find(p) != m_list.end());