mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-13 14:10:27 +01:00
Small optimization
This commit is contained in:
parent
5bf2039bbb
commit
f8edccffb7
|
@ -330,9 +330,9 @@ 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();
|
||||
}
|
||||
m_positions.sort();
|
||||
m_positions.unique();
|
||||
}
|
||||
|
||||
inline BlockPos TileGenerator::decodeBlockPos(int64_t blockId) const
|
||||
|
|
Loading…
Reference in New Issue
Block a user