mapgen fix

This commit is contained in:
BuckarooBanzay 2022-11-14 10:03:22 +01:00
parent f6e65b26dc
commit c9913e1df1

View File

@ -7,6 +7,7 @@ local function select_biome(biomes, temperature, humidity)
local score = math.abs(temperature - biome.temperature) + math.abs(humidity - biome.humidity)
if not selected_biome or score > selected_score then
selected_biome = biome
selected_score = score
end
end