mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-05 18:10:21 +02:00
Warn about invalid node name IDs
Unknown IDs are already mapped to m_blockIgnoreId by server, and should not appear here unless block data is corrupted.
This commit is contained in:
@ -523,8 +523,10 @@ inline void TileGenerator::renderMapBlock(const ustring &mapBlock, const BlockPo
|
||||
continue;
|
||||
}
|
||||
NameMap::iterator blockName = m_nameMap.find(content);
|
||||
if (blockName == m_nameMap.end())
|
||||
if (blockName == m_nameMap.end()) {
|
||||
std::cerr << "Skipping node with invalid name ID" << std::endl;
|
||||
continue;
|
||||
}
|
||||
const string &name = blockName->second;
|
||||
ColorMap::const_iterator color = m_colorMap.find(name);
|
||||
if (color != m_colorMap.end()) {
|
||||
|
Reference in New Issue
Block a user