Clean m_nameMap between blocks

Each block embeds it own content id <=> name mapping. Keeping values
accross blocks could mask corrupted ones.
This commit is contained in:
Christophe Le Roy 2016-09-24 21:08:26 +02:00
parent 09945caa14
commit 86ea456127
1 changed files with 1 additions and 0 deletions

View File

@ -441,6 +441,7 @@ void TileGenerator::renderMap()
m_blockAirId = -1;
m_blockIgnoreId = -1;
m_nameMap.clear();
// Read mapping
if (version >= 22) {
dataOffset++; // mapping version