mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
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.
This commit is contained in:
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "test.h"
|
||||
#include <algorithm>
|
||||
#include "server/mods.h"
|
||||
#include "settings.h"
|
||||
#include "test_config.h"
|
||||
|
||||
class TestServerModManager : public TestBase
|
||||
@@ -85,6 +86,10 @@ void TestServerModManager::runTests(IGameDef *gamedef)
|
||||
|
||||
void TestServerModManager::testCreation()
|
||||
{
|
||||
std::string path = std::string(TEST_WORLDDIR) + DIR_DELIM + "world.mt";
|
||||
Settings world_config;
|
||||
world_config.set("gameid", "minimal");
|
||||
UASSERTEQ(bool, world_config.updateConfigFile(path.c_str()), true);
|
||||
ServerModManager sm(TEST_WORLDDIR);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user