mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +01:00
Small optimization
This commit is contained in:
parent
5bf2039bbb
commit
f8edccffb7
@ -330,10 +330,10 @@ void TileGenerator::loadBlocks()
|
||||
m_zMax = pos.z;
|
||||
}
|
||||
m_positions.push_back(std::pair<int, int>(pos.x, pos.z));
|
||||
}
|
||||
m_positions.sort();
|
||||
m_positions.unique();
|
||||
}
|
||||
}
|
||||
|
||||
inline BlockPos TileGenerator::decodeBlockPos(int64_t blockId) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user