#include "filesys.h"
#include "mapblock_mesh.h"
#include "mapblock.h"
+#include "mapsector.h"
#include "minimap.h"
#include "modchannels.h"
#include "content/mods.h"
infostream << "Could not queue chat message because maximum out chat queue size ("
<< max_queue_size << ") is reached." << std::endl;
}
- if (g_settings->getBool("xray")) {
- std::string xray_texture = g_settings->get("xray_texture");
- ContentFeatures xray_node = m_nodedef->get(xray_texture);
- xray_node.drawtype = NDT_AIRLIKE;
- m_nodedef->set(xray_texture, xray_node);
- }
}
void Client::clearOutChatQueue()
}
}
+void Client::updateAllMapBlocks()
+{
+ std::map<v2s16, MapSector*> *sectors = m_env.getMap().getSectorsPtr();
+ for (auto §or_it : *sectors) {
+ MapSector *sector = sector_it.second;
+ MapBlockVect blocks;
+ sector->getBlocks(blocks);
+ for (MapBlock *block : blocks)
+ addUpdateMeshTask(block->getPos(), false, false);
+ }
+}
+
ClientEvent *Client::getClientEvent()
{
FATAL_ERROR_IF(m_client_event_queue.empty(),