Skip to content
Snippets Groups Projects
Commit c1b236b4 authored by SmallJoker's avatar SmallJoker Committed by sfan5
Browse files

weather: Fix error caused by missing biomes

parent 9d419bfa
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,8 @@ local function update_clouds()
local n_speedz = nobj_speedz:get_2d({x = time, y = 0}) -- -1 to 1
for _, player in ipairs(minetest.get_connected_players()) do
local humid = minetest.get_humidity(player:get_pos())
-- Fallback to mid-value 50 for very old worlds
local humid = minetest.get_humidity(player:get_pos()) or 50
-- Default and classic density value is 0.4, make this happen
-- at humidity midvalue 50 when n_density is at midvalue 0.5.
-- density_max = 0.25 at humid = 0.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment