mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-13 14:10:27 +01:00
Fix --{min,max}-y, thanks to @PilzAdam
This commit is contained in:
parent
6e30d4702c
commit
ce759d7724
|
@ -320,7 +320,7 @@ void TileGenerator::loadBlocks()
|
|||
continue;
|
||||
}
|
||||
// Check that it's between --miny and --maxy
|
||||
if (pos.y < m_yMin * 16 || pos.y > m_yMax * 16) {
|
||||
if (pos.y * 16 < m_yMin || pos.y * 16 > m_yMax) {
|
||||
continue;
|
||||
}
|
||||
// Adjust minimum and maximum positions to the nearest block
|
||||
|
|
Loading…
Reference in New Issue
Block a user