bool isBlockInQueue(v3s16 pos);
- v3s16 getContainingChunk(v3s16 blockpos);
-
Mapgen *getCurrentMapgen();
// Mapgen helpers methods
int getSpawnLevelAtPoint(v2s16 p);
- int getGroundLevelAtPoint(v2s16 p);
bool isBlockUnderground(v3s16 blockpos);
static v3s16 getContainingChunk(v3s16 blockpos, s16 chunksize);
std::mutex m_queue_mutex;
std::map<v3s16, BlockEmergeData> m_blocks_enqueued;
- std::unordered_map<u16, u16> m_peer_queue_count;
+ std::unordered_map<u16, u32> m_peer_queue_count;
- u16 m_qlimit_total;
- u16 m_qlimit_diskonly;
- u16 m_qlimit_generate;
+ u32 m_qlimit_total;
+ u32 m_qlimit_diskonly;
+ u32 m_qlimit_generate;
// Managers of various map generation-related components
// Note that each Mapgen gets a copy(!) of these to work with