From c0fe6c683e108155bac43df6cfe0f3a95bff59aa Mon Sep 17 00:00:00 2001 From: varttist Date: Fri, 26 Jun 2026 22:24:52 +0300 Subject: [PATCH] `MapGen`: minor biome weight fix --- mods/CORE/MapGen/src/MapGen/Layer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/MapGen/src/MapGen/Layer.lua b/mods/CORE/MapGen/src/MapGen/Layer.lua index 075cfe5..f56b6a6 100644 --- a/mods/CORE/MapGen/src/MapGen/Layer.lua +++ b/mods/CORE/MapGen/src/MapGen/Layer.lua @@ -537,7 +537,7 @@ function Layer:initBiomesDiagram() ---Half the distance between the centers of two nearest biomes (i.e. the distance to the biome boundary) local distance2 = (pastClosestBiome.tempPoint - closestBiome.tempPoint)^2 + (pastClosestBiome.humidityPoint - closestBiome.humidityPoint) / 2 - weight = mathClamp(distance1 / distance2, 0, 1) + weight = 1 - mathClamp(distance1 / distance2, 0, 1) else weight = 1 end