a comment to save future futile attemps

This commit is contained in:
minjaesong
2024-01-21 00:49:01 +09:00
parent ff3f8fe7e3
commit f34a6b7c9f

View File

@@ -142,6 +142,8 @@ object Worldgen {
*/
fun getChunkGenStrip(world: GameWorld): Pair<Int, Int> {
val start = (0.00342f * world.height - 3.22f).floorToInt().coerceAtLeast(1)
// this value has to extend up, otherwise the player may spawn into the chopped-off mountaintop
// this value has to extend down into the rock layer, otherwise, if the bottom of the bottom chunk is dirt, they will turn into grasses
return start - 1 to start + 6
}