Don't send an InventoryAction at each setInventoryModified, we only need one SendInve...
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 24 Mar 2015 08:36:54 +0000 (09:36 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 24 Mar 2015 13:13:17 +0000 (14:13 +0100)
commit7851c4f7a2673477cf80a38842d77efbe5a0a915
treebf061675545f6054aa8802d55549b951ec3eb0d7
parent9fbc3a8ca364922bc1129a35c1a37addab5f023c
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
src/inventorymanager.cpp
src/inventorymanager.h
src/network/serverpackethandler.cpp
src/server.cpp
src/server.h