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:
parent
22a1653702
commit
c99196d363
2 changed files with 53 additions and 15 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue