summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-24 09:36:54 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-24 14:13:17 +0100
commit7851c4f7a2673477cf80a38842d77efbe5a0a915 (patch)
treebf061675545f6054aa8802d55549b951ec3eb0d7 /src/server.h
parent9fbc3a8ca364922bc1129a35c1a37addab5f023c (diff)
downloadminetest-7851c4f7a2673477cf80a38842d77efbe5a0a915.tar.gz
minetest-7851c4f7a2673477cf80a38842d77efbe5a0a915.tar.bz2
minetest-7851c4f7a2673477cf80a38842d77efbe5a0a915.zip
Don't send an InventoryAction at each setInventoryModified, we only need one SendInventory per inventory modification
Client doesn't like to receive multiples SendInventory for one action, this can trigger glitches on clients (sometimes due to incorrect UDP packet ordering due to UDP protocol) This fix issue #2544
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index f62b5b660..0c0a5f91c 100644
--- a/src/server.h
+++ b/src/server.h
@@ -237,7 +237,7 @@ public:
Shall be called with the environment and the connection locked.
*/
Inventory* getInventory(const InventoryLocation &loc);
- void setInventoryModified(const InventoryLocation &loc);
+ void setInventoryModified(const InventoryLocation &loc, bool playerSend = true);
// Connection must be locked when called
std::wstring getStatusString();