mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
a comment to save future futile attemps
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user