Add count based unload limit for mapblocks
[oweals/minetest.git] / src / client.cpp
index d4d3b6df64b36d8dd49aa2fbcfa9db6cc2a2beef..946f4f1c48116447128534a9dfdd5b7b33c9604c 100644 (file)
@@ -421,8 +421,9 @@ void Client::step(float dtime)
                ScopeProfiler sp(g_profiler, "Client: map timer and unload");
                std::vector<v3s16> deleted_blocks;
                m_env.getMap().timerUpdate(map_timer_and_unload_dtime,
-                               g_settings->getFloat("client_unload_unused_data_timeout"),
-                               &deleted_blocks);
+                       g_settings->getFloat("client_unload_unused_data_timeout"),
+                       g_settings->getS32("client_mapblock_limit"),
+                       &deleted_blocks);
 
                /*
                        Send info to server