Check for m_blockAirId before m_blockIgnoreId (most frequent)

This commit is contained in:
Christophe Le Roy 2016-09-24 21:45:51 +02:00
parent 2b17232fd5
commit 18ecaf780f
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ inline void TileGenerator::renderMapBlock(const ustring &mapBlock, const BlockPo
for (int y = maxY; y >= minY; --y) {
int position = x + (y << 4) + (z << 8);
int content = readBlockContent(mapData, version, position);
if (content == m_blockIgnoreId || content == m_blockAirId) {
if (content == m_blockAirId || content == m_blockIgnoreId) {
continue;
}
NameMap::iterator blockName = m_nameMap.find(content);