1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 02:05:30 +01:00

Mark liquid and light updates low priority

This commit is contained in:
Lars
2025-04-21 17:06:01 -07:00
committed by lhofhansl
parent 2a3427a39c
commit 00addc3e5d
5 changed files with 29 additions and 20 deletions

View File

@@ -251,8 +251,8 @@ public:
void SentBlock(v3s16 p);
void SetBlockNotSent(v3s16 p);
void SetBlocksNotSent(const std::vector<v3s16> &blocks);
void SetBlockNotSent(v3s16 p, bool low_priority = false);
void SetBlocksNotSent(const std::vector<v3s16> &blocks, bool low_priority = false);
/**
* tell client about this block being modified right now.
@@ -443,7 +443,7 @@ public:
std::vector<session_t> getClientIDs(ClientState min_state=CS_Active);
/* mark blocks as not sent on all active clients */
void markBlocksNotSent(const std::vector<v3s16> &positions);
void markBlocksNotSent(const std::vector<v3s16> &positions, bool low_priority = false);
/* verify is server user limit was reached */
bool isUserLimitReached();