summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-08-25 10:55:27 +0200
committerSmallJoker <mk939@ymail.com>2019-09-09 19:19:54 +0200
commitfae6242d4ef6ca34d131054484acf5efc2fcba70 (patch)
tree46d865c5f8af0bb7e67e0c105db85be210891fe1 /src/server.h
parenta57f951e021efb11fb7d5779d63aa36ede7a41b4 (diff)
downloadminetest-fae6242d4ef6ca34d131054484acf5efc2fcba70.tar.gz
minetest-fae6242d4ef6ca34d131054484acf5efc2fcba70.tar.bz2
minetest-fae6242d4ef6ca34d131054484acf5efc2fcba70.zip
Send cumulated inventory changes only each step (#8856)
Applies to player and detached inventories
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h
index d1dcafac3..86f82b6d7 100644
--- a/src/server.h
+++ b/src/server.h
@@ -195,7 +195,7 @@ public:
Shall be called with the environment and the connection locked.
*/
Inventory* getInventory(const InventoryLocation &loc);
- void setInventoryModified(const InventoryLocation &loc, bool playerSend = true);
+ void setInventoryModified(const InventoryLocation &loc);
// Connection must be locked when called
std::wstring getStatusString();
@@ -337,6 +337,8 @@ public:
void SendMovePlayer(session_t peer_id);
void SendPlayerSpeed(session_t peer_id, const v3f &added_vel);
+ void sendDetachedInventories(session_t peer_id, bool incremental);
+
virtual bool registerModStorage(ModMetadata *storage);
virtual void unregisterModStorage(const std::string &name);
@@ -443,7 +445,6 @@ private:
const std::vector<std::string> &tosend);
void sendDetachedInventory(const std::string &name, session_t peer_id);
- void sendDetachedInventories(session_t peer_id);
// Adds a ParticleSpawner on peer with peer_id (PEER_ID_INEXISTENT == all)
void SendAddParticleSpawner(session_t peer_id, u16 protocol_version,