mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-06 10:20:44 +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;
|
continue;
|
||||||
}
|
}
|
||||||
NameMap::iterator blockName = m_nameMap.find(content);
|
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;
|
continue;
|
||||||
|
}
|
||||||
const string &name = blockName->second;
|
const string &name = blockName->second;
|
||||||
ColorMap::const_iterator color = m_colorMap.find(name);
|
ColorMap::const_iterator color = m_colorMap.find(name);
|
||||||
if (color != m_colorMap.end()) {
|
if (color != m_colorMap.end()) {
|
||||||
|
Reference in New Issue
Block a user