mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Optimize Server::sendMetadataChanged a bit
The distance check also never worked as intended, now fixed.
This commit is contained in:
parent
f195db2d14
commit
261a8db9dd
2 changed files with 21 additions and 20 deletions
|
@ -492,7 +492,7 @@ private:
|
|||
std::unordered_set<u16> *far_players = nullptr,
|
||||
float far_d_nodes = 100, bool remove_metadata = true);
|
||||
|
||||
void sendMetadataChanged(const std::list<v3s16> &meta_updates,
|
||||
void sendMetadataChanged(const std::unordered_set<v3s16> &positions,
|
||||
float far_d_nodes = 100);
|
||||
|
||||
// Environment and Connection must be locked when called
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue