mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-26 01:13:55 +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;
|
continue;
|
||||||
}
|
}
|
||||||
// Check that it's between --miny and --maxy
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
// Adjust minimum and maximum positions to the nearest block
|
// Adjust minimum and maximum positions to the nearest block
|
||||||
|
Loading…
Reference in New Issue
Block a user