Inventory: Send dirty lists where appropriate (#8742)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 24 Aug 2019 17:07:38 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Aug 2019 17:07:38 +0000 (19:07 +0200)
commit0b4f424f414380b7a46270e1389e8aa0524d8fba
tree5731cbe72bb3178d697b3cda43b838f26ba34f7d
parent008b80fe1ca9d46610b8971e2ac92fb56da8e69f
Inventory: Send dirty lists where appropriate (#8742)

This change reduces the amount of sent data towards clients. Inventory lists that are already known to the player are skipped, saving quite some data over time.

Raises protocol version to 38 to ensure correct backwards-compatible code.
16 files changed:
src/client/client.cpp
src/client/client.h
src/client/game.cpp
src/inventory.cpp
src/inventory.h
src/network/clientpackethandler.cpp
src/network/networkprotocol.h
src/network/serverpackethandler.cpp
src/remoteplayer.h
src/script/lua_api/l_object.cpp
src/server.cpp
src/server.h
src/unittest/test_inventory.cpp
src/unittest/test_servermodmanager.cpp
src/unittest/test_world/do_not_remove.txt [new file with mode: 0644]
src/unittest/test_world/world.mt [deleted file]